]> Cypherpunks repositories - gostls13.git/commit
cmd/go: disable sumdb less often for toolchain downloads
authorRuss Cox <rsc@golang.org>
Fri, 16 Jun 2023 17:08:23 +0000 (13:08 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 20 Jun 2023 15:02:47 +0000 (15:02 +0000)
commit645949401455bb32ce430c7a7eb87fe8102f002c
treecde49c8bd415d5e05e761a0673e47742b32246f2
parent02789816c46993c1c093500d94b8ebb4b622b77a
cmd/go: disable sumdb less often for toolchain downloads

There is a chicken and egg problem with always requiring
the checksum database for toolchain module downloads, since the
checksum database populates its entry by doing its own module
download.

Don't require the checksum database for GOPROXY=file:/// (for local testing)
and when running on the Go module mirror.

For #60847.

Change-Id: I5d67d585169ae0fa73109df233baae8ba5fe5dd3
Reviewed-on: https://go-review.googlesource.com/c/go/+/503978
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
src/cmd/go/internal/modfetch/sumdb.go