]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go/internal/work: avoid modload.Selected in 'go install pkg@version'
authorBryan C. Mills <bcmills@google.com>
Wed, 18 Nov 2020 18:44:39 +0000 (13:44 -0500)
committerBryan C. Mills <bcmills@google.com>
Thu, 19 Nov 2020 19:31:07 +0000 (19:31 +0000)
commit498d8d537153a210e45d356d779aee74de5acda1
tree0a31fe6dab8ad4108e468ebf5834571a0e388ff0
parente73697b710b2fd41b14336837ac6fd2585ad2a04
cmd/go/internal/work: avoid modload.Selected in 'go install pkg@version'

At this point in installOutsideModule the build list is empty, so
Selected trivially returns "none" for all modules.

(This change could have been made in CL 266657, but it was a bit
simpler to update the QueryPattern call sites mechanically to ensure
that there would be no unintentional semantic drift.)

For #36460

Change-Id: I44fb73794985bfeebb1dde0c092313f319c2945a
Reviewed-on: https://go-review.googlesource.com/c/go/+/271419
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/work/build.go