]> Cypherpunks repositories - gostls13.git/commit
cmd/go: re-enable 'go list -m' with -mod=vendor for limited patterns
authorBryan C. Mills <bcmills@google.com>
Thu, 24 Oct 2019 13:17:54 +0000 (09:17 -0400)
committerBryan C. Mills <bcmills@google.com>
Thu, 24 Oct 2019 16:18:09 +0000 (16:18 +0000)
commitfc3350686404a988e711aac84d70113660c882cf
treee402e344bc0e9a10435d4e749b6e831605c85768
parentb36f22bff04cf62f77d42d9584a050afffa2d723
cmd/go: re-enable 'go list -m' with -mod=vendor for limited patterns

I had prohibited 'go list -m' with -mod=vendor because the module
graph is incomplete, but I've realized that many queries do not
actually require the full graph — and may, in fact, be driven using
modules previously reported by 'go list' for specific, vendored
packages. Queries for those modules should succeed.

Updates #33848

Change-Id: I1000b4cf586a830bb78faf620ebf62d73a3cb300
Reviewed-on: https://go-review.googlesource.com/c/go/+/203138
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/list/list.go
src/cmd/go/internal/modload/list.go
src/cmd/go/testdata/script/mod_convert_vendor_json.txt
src/cmd/go/testdata/script/mod_convert_vendor_manifest.txt
src/cmd/go/testdata/script/mod_getmode_vendor.txt
src/cmd/go/testdata/script/mod_vendor.txt
src/cmd/go/testdata/script/mod_vendor_auto.txt