]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modfetch: simplify handling of weird version tags
authorBryan C. Mills <bcmills@google.com>
Thu, 24 Feb 2022 21:12:34 +0000 (16:12 -0500)
committerGopher Robot <gobot@golang.org>
Tue, 10 May 2022 18:25:37 +0000 (18:25 +0000)
commit4d716e4d4a25526ba963a7cfb2b5208eb52e71c0
tree4ff4e591ffbeb0eb51904550bcfdfc397ec14887
parent17dc7b487f2406261d638350e4652fc5df224cc2
cmd/go/internal/modfetch: simplify handling of weird version tags

This fixes an obscure bug in 'go list -versions' if the repo contains
a tag with an explicit "+incompatible" suffix. However, I've never
seen such a repo in the wild; mostly it's an attempt to wrap my brain
around the code and simplify things a bit for the future.

Updates #51324
Updates #51312

Change-Id: I1b078b5db36470cf61aaa85b5244c99b5ee2c842
Reviewed-on: https://go-review.googlesource.com/c/go/+/387917
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/modfetch/codehost/codehost.go
src/cmd/go/internal/modfetch/codehost/git.go
src/cmd/go/internal/modfetch/coderepo.go
src/cmd/go/internal/modfetch/coderepo_test.go
src/cmd/go/testdata/script/mod_list_odd_tags.txt [new file with mode: 0644]