Skip to content

Commit e12efec

Browse files
committed
cmd/go: update docs for GOPROXY default
The default is now "https://proxy.golang.org,direct" not just "https://proxy.golang.org" (as of CL 178720). Change-Id: I47e67602e994332b988ed1b75fa57319f3876cc6 Reviewed-on: https://go-review.googlesource.com/c/go/+/178725 Run-TryBot: Russ Cox <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]>
1 parent 200176e commit e12efec

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/cmd/go/alldocs.go

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cmd/go/internal/modload/help.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,9 @@ Module downloading and verification
331331
The go command can fetch modules from a proxy or connect to source control
332332
servers directly, according to the setting of the GOPROXY environment
333333
variable (see 'go help env'). The default setting for GOPROXY is
334-
"https://proxy.golang.org", the Go module mirror run by Google.
334+
"https://proxy.golang.org,direct", which means to try the
335+
Go module mirror run by Google and fall back to a direct connection
336+
if the proxy reports that it does not have the module (HTTP error 404 or 410).
335337
See https://proxy.golang.org/privacy for the service's privacy policy.
336338
If GOPROXY is set to the string "direct", downloads use a direct connection
337339
to source control servers. Setting GOPROXY to "off" disallows downloading

0 commit comments

Comments
 (0)