We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd54936 commit 8096433Copy full SHA for 8096433
src/cmd/dist/build.go
@@ -1394,6 +1394,12 @@ func cmdbootstrap() {
1394
// go tool may complain.
1395
os.Setenv("GOPATH", pathf("%s/pkg/obj/gopath", goroot))
1396
1397
+ // Set GOPROXY=off to avoid downloading modules to the modcache in
1398
+ // the GOPATH set above to be inside GOROOT. The modcache is read
1399
+ // only so if we downloaded to the modcache, we'd create readonly
1400
+ // files in GOROOT, which is undesirable. See #67463)
1401
+ os.Setenv("GOPROXY", "off")
1402
+
1403
// Use a build cache separate from the default user one.
1404
// Also one that will be wiped out during startup, so that
1405
// make.bash really does start from a clean slate.
0 commit comments