Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/go/internal/modfetch: avoid using non-canonical semver tags
We insist that semver tags in repos be fully spelled out, as required by semver: v1.2.0, not v1.2. In other places, like go.mod, we do allow saying v1.2 as shorthand for v1.2.0. Don't confuse the issue by reporting a "v1.2" tag in the version list, since it's unaddressable. (If you type v1.2 vgo will look for v1.2.0.) Similarly, don't report tags that don't match the module path, and don't report tags that look like pseudo-versions. Additional fix for golang/go#23954, golang/go#24476. Change-Id: Iaac0fb36362b25e5faef5271c110d432ec04bc8b Reviewed-on: https://go-review.googlesource.com/107659 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com>
- Loading branch information