]> Cypherpunks repositories - gostls13.git/commit
cmd/go: tighten the check for pseudo-version base tags
authorBryan C. Mills <bcmills@google.com>
Tue, 2 Jul 2019 21:03:27 +0000 (17:03 -0400)
committerBryan C. Mills <bcmills@google.com>
Tue, 16 Jul 2019 15:37:25 +0000 (15:37 +0000)
commit6bf2767cc87f9f6a1b85cdc18c656fade735f27f
treee4f055ece2f30ebeecf29d83d300236b90a44b20
parent0da58d076a98a0fa027ea547b2a1c35147fd6e6e
cmd/go: tighten the check for pseudo-version base tags

Do not allow a pseudo-version derived from a canonical tag to refer to
the same revision as the tag itself. It's unnecessary (because
canonical tags already have a total ordering) and confusing (the
pseudo-version appears to come after the tag, but actually refers to
the exact same revision).

Updates #32879
Updates #27173

Change-Id: I02befedbe89c8819bdd93e470783ce63fc813193
Reviewed-on: https://go-review.googlesource.com/c/go/+/184720
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
doc/go1.13.html
src/cmd/go/internal/modfetch/coderepo.go
src/cmd/go/internal/modfetch/coderepo_test.go
src/cmd/go/testdata/script/mod_invalid_version.txt