Date: Mon, 27 May 2019 15:12:53 +0200 From: Jakub Cajka Subject: [PATCH 3/3] cmd/go: disable Google's proxy and sumdb Updated by OldCoder for use with "go" 1.23.5. --- go.old/src/cmd/go/internal/cfg/cfg.go +++ go/src/cmd/go/internal/cfg/cfg.go @@ -425,8 +425,8 @@ GORISCV64, goRISCV64Changed = EnvOrAndChanged("GORISCV64", fmt.Sprintf("rva%du64", buildcfg.GORISCV64)) GOWASM, goWASMChanged = EnvOrAndChanged("GOWASM", fmt.Sprint(buildcfg.GOWASM)) - GOPROXY, GOPROXYChanged = EnvOrAndChanged("GOPROXY", "") - GOSUMDB, GOSUMDBChanged = EnvOrAndChanged("GOSUMDB", "") + GOPROXY, GOPROXYChanged = EnvOrAndChanged("GOPROXY", "direct") + GOSUMDB, GOSUMDBChanged = EnvOrAndChanged("GOSUMDB", "off") GOPRIVATE = Getenv("GOPRIVATE") GONOPROXY, GONOPROXYChanged = EnvOrAndChanged("GONOPROXY", GOPRIVATE) GONOSUMDB, GONOSUMDBChanged = EnvOrAndChanged("GONOSUMDB", GOPRIVATE) --- go.old/src/cmd/go/testdata/script/mod_sumdb_golang.txt +++ go/src/cmd/go/testdata/script/mod_sumdb_golang.txt @@ -2,12 +2,12 @@ [go-builder] env GOPROXY= [go-builder] env GOSUMDB= [go-builder] go env GOPROXY -[go-builder] stdout '^https://proxy.golang.org,direct$' +[go-builder] stdout '^direct$' [go-builder] go env GOSUMDB -[go-builder] stdout '^sum.golang.org$' +[go-builder] stdout '^off$' [go-builder] env GOPROXY=https://proxy.golang.org [go-builder] go env GOSUMDB -[go-builder] stdout '^sum.golang.org$' +[go-builder] stdout '^off$' # Download direct from github.