]> Cypherpunks repositories - gostls13.git/commit
cmd/go: in 'go list -m', ignore "not found" errors loading updates
authorJay Conrod <jayconrod@google.com>
Thu, 1 Apr 2021 15:01:19 +0000 (11:01 -0400)
committerJay Conrod <jayconrod@google.com>
Thu, 8 Apr 2021 17:18:24 +0000 (17:18 +0000)
commit23e1d36a87f55b7e37d969ba3de3a8e1b8147f49
tree88b2d451e1f581ca19a6c3a95dad7cf88b0b8316
parent0e09e4143e3d55ac8cbcbf53f1da98b817fc5a58
cmd/go: in 'go list -m', ignore "not found" errors loading updates

"Not found" and "no matching version" errors usually indicate the user
is offline or the proxy doesn't have a version of go.mod that could
provide retractions. 'go list -m -u' should still succeed.

We should still report unclassified errors though. Previously, we
reported most errors loading retractions but did not report errors
loading updates. This change makes those operations more consistent.

Fixes #45305

Change-Id: I2f23a566c9481bc7ff229a177f39d78f6a8aae77
Reviewed-on: https://go-review.googlesource.com/c/go/+/306572
Trust: Jay Conrod <jayconrod@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/modload/build.go
src/cmd/go/testdata/script/mod_list_retract.txt
src/cmd/go/testdata/script/mod_list_update_nolatest.txt [new file with mode: 0644]
src/cmd/go/testdata/script/mod_retract_replace.txt