]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go/internal/modcmd: eliminate a call to modload.LoadedModules
authorBryan C. Mills <bcmills@google.com>
Wed, 18 Nov 2020 03:13:35 +0000 (22:13 -0500)
committerBryan C. Mills <bcmills@google.com>
Thu, 19 Nov 2020 04:02:42 +0000 (04:02 +0000)
commitff2824d4b3391c644b264273f98a47302e2d4ab6
tree6db2177c585df0a551c35d37984365996f099531
parent0bb6115dd6246c047335a75ce4b01a07c291befd
cmd/go/internal/modcmd: eliminate a call to modload.LoadedModules

modload.LoadedModules reveals more information than necessary about
whether modules have been loaded lazily. The 'vendor' subcommand
doesn't actually need that much information: it has all of the
information that it needs from prior calls to LoadPackages and
ModFile.

For #36460

Change-Id: If08733cca930b2b80616b037b63985ecfd6a320b
Reviewed-on: https://go-review.googlesource.com/c/go/+/270979
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/modcmd/vendor.go