internal/gocore: remove Process.minorVersion

An explicit minor version number was added fairly recently in
https://go.dev/cl/321736. It seems like a nice simplification, but it
complicates working with devel builds significantly.

In particular, tests running via the coordinator (build.golang.org) have
no discernable version, just "devel SHA1", breaking version parsing, and
making it impossible to add a test for dynamically generated core files.

Thus, we drop minorVersion and revert back to feature tests via the type
system. There are two exceptions (both from 1.17) where the type system
isn't sufficient to differentiate the specific features, so
unfortunately we still need a heuristic to detect 1.17.

Change-Id: I5f98418833ee4742f1fe84de10865e133c9866f6
Reviewed-on: https://go-review.googlesource.com/c/debug/+/427214
Run-TryBot: Michael Pratt <mpratt@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
3 files changed
tree: dfdca9558ccc30a56d30b4b8d28254a60bfe9c3f
  1. cmd/
  2. dwtest/
  3. internal/
  4. codereview.cfg
  5. CONTRIBUTING.md
  6. go.mod
  7. go.sum
  8. LICENSE
  9. README.md
README.md

Go Debug

Go Reference

This repository holds utilities and libraries for debugging Go programs.

WARNING! Please expect breaking changes and unstable APIs. Most of them are currently are at an early, experimental stage.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the debug repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/debug:” in the subject line, so it is easy to find.