]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go: remove ListModules call in runGet
authorJay Conrod <jayconrod@google.com>
Thu, 19 Nov 2020 15:56:35 +0000 (10:56 -0500)
committerJay Conrod <jayconrod@google.com>
Fri, 20 Nov 2020 15:37:42 +0000 (15:37 +0000)
commit9264067a41d98d0500036c2279dea252d1f9adac
treebea06e7adcb0044feca2f061815583c755c62a52
parentcb3f84ad25abaea28dad905ceddd81a5a334e806
cmd/go: remove ListModules call in runGet

ListModules was used to download .info files so that 'go list -m all'
would succeed later when offline. However, 'go list -m all' may
already fail when offline after 'go mod tidy', so it doesn't make
sense to add complexity to 'go get'.

Instead, remove the ListModules call and fix the test that
accidentally depended on it.

For #42723

Change-Id: I692597cf5ca15c23fa6fc9d2bac4b6e044299482
Reviewed-on: https://go-review.googlesource.com/c/go/+/271577
Trust: Jay Conrod <jayconrod@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/modget/get.go
src/cmd/go/testdata/script/mod_gonoproxy.txt