]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/get: fix "mod over non-mod" preference for meta tags
authorRuss Cox <rsc@golang.org>
Wed, 18 Jul 2018 19:45:13 +0000 (15:45 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 19 Jul 2018 18:44:09 +0000 (18:44 +0000)
commitceca60228205652c0791d649368dd8e550073810
tree8e19ffb95c98e4536428701ec9ca76ecfa292aea
parentff81a6444a9171ffe3021353388047a698b21252
cmd/go/internal/get: fix "mod over non-mod" preference for meta tags

If there was a mod and non-mod meta tag for a given prefix,
the meta tag extractor was already dropping the non-mod meta tag.
But we might have mod and non-mod meta tags with different
prefixes, in which case the mod tag should prevail when both match.

Fixes #26200.

Change-Id: I17ab361338e270b9fa03999ad1954f2bbe0f5017
Reviewed-on: https://go-review.googlesource.com/124714
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/get/pkg_test.go
src/cmd/go/internal/get/vcs.go
src/cmd/go/internal/get/vcs_test.go