]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: set GOPROXY=off when GOPATH is set to be in GOROOT
authorMichael Matloob <matloob@golang.org>
Mon, 20 May 2024 14:44:43 +0000 (10:44 -0400)
committerMichael Matloob <matloob@golang.org>
Mon, 20 May 2024 18:34:40 +0000 (18:34 +0000)
commit80964338a522ece87a52e723242f9dd79caf8e63
tree86d7b699fa811255f15c18418f8619ce19f062c9
parentfd54936ea523f44835adc39f0a2cebccbcb742c3
cmd/dist: set GOPROXY=off when GOPATH is set to be in GOROOT

Avoid downloading modules into a modcache in the GOROOT directory. That
creates read only files in GOROOT, which is undesirable.

Fixes #67463

Change-Id: I6d10c605be5eba967648d823ee8fc915716b4b5b
Reviewed-on: https://go-review.googlesource.com/c/go/+/586078
Reviewed-by: Robert Findley <rfindley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/dist/build.go