]> Cypherpunks repositories - gostls13.git/commit
cmd/go: when resolving packages, try all module paths before falling back to the...
authorBryan C. Mills <bcmills@google.com>
Thu, 16 May 2019 13:21:49 +0000 (09:21 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 24 May 2019 21:34:43 +0000 (21:34 +0000)
commitc7385e270473244ef5aa312a172f1912e99800be
tree164f3a0afa58a05fbd8350259ae73df761184299
parent496b8dbbfcd39cc51e1dfc1e9be90b7e61179009
cmd/go: when resolving packages, try all module paths before falling back to the next proxy

Since we're mucking with error-propagation in modload.Query* anyway,
simplify the classification logic. Ensure that “module not found”
errors are reported as such in various places, since non-“not found”
errors terminate the module search.

Fixes #31785

Change-Id: Ie3ca5f4eec10a5f2a6037ec7e1c2cf47bd37a232
Reviewed-on: https://go-review.googlesource.com/c/go/+/177958
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
14 files changed:
src/cmd/go/internal/modconv/convert_test.go
src/cmd/go/internal/modfetch/cache.go
src/cmd/go/internal/modfetch/coderepo_test.go
src/cmd/go/internal/modfetch/fetch.go
src/cmd/go/internal/modfetch/proxy.go
src/cmd/go/internal/modfetch/repo.go
src/cmd/go/internal/modfetch/sumdb.go
src/cmd/go/internal/modload/import.go
src/cmd/go/internal/modload/import_test.go
src/cmd/go/internal/modload/load.go
src/cmd/go/internal/modload/query.go
src/cmd/go/internal/modload/query_test.go
src/cmd/go/proxy_test.go
src/cmd/go/testdata/script/mod_gobuild_import.txt