Commit e12efecf authored by Russ Cox's avatar Russ Cox

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 <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarBryan C. Mills <bcmills@google.com>
parent 200176ed
...@@ -2579,7 +2579,9 @@ ...@@ -2579,7 +2579,9 @@
// The go command can fetch modules from a proxy or connect to source control // The go command can fetch modules from a proxy or connect to source control
// servers directly, according to the setting of the GOPROXY environment // servers directly, according to the setting of the GOPROXY environment
// variable (see 'go help env'). The default setting for GOPROXY is // variable (see 'go help env'). The default setting for GOPROXY is
// "https://proxy.golang.org", the Go module mirror run by Google. // "https://proxy.golang.org,direct", which means to try the
// Go module mirror run by Google and fall back to a direct connection
// if the proxy reports that it does not have the module (HTTP error 404 or 410).
// See https://proxy.golang.org/privacy for the service's privacy policy. // See https://proxy.golang.org/privacy for the service's privacy policy.
// If GOPROXY is set to the string "direct", downloads use a direct connection // If GOPROXY is set to the string "direct", downloads use a direct connection
// to source control servers. Setting GOPROXY to "off" disallows downloading // to source control servers. Setting GOPROXY to "off" disallows downloading
......
...@@ -331,7 +331,9 @@ Module downloading and verification ...@@ -331,7 +331,9 @@ Module downloading and verification
The go command can fetch modules from a proxy or connect to source control The go command can fetch modules from a proxy or connect to source control
servers directly, according to the setting of the GOPROXY environment servers directly, according to the setting of the GOPROXY environment
variable (see 'go help env'). The default setting for GOPROXY is variable (see 'go help env'). The default setting for GOPROXY is
"https://proxy.golang.org", the Go module mirror run by Google. "https://proxy.golang.org,direct", which means to try the
Go module mirror run by Google and fall back to a direct connection
if the proxy reports that it does not have the module (HTTP error 404 or 410).
See https://proxy.golang.org/privacy for the service's privacy policy. See https://proxy.golang.org/privacy for the service's privacy policy.
If GOPROXY is set to the string "direct", downloads use a direct connection If GOPROXY is set to the string "direct", downloads use a direct connection
to source control servers. Setting GOPROXY to "off" disallows downloading to source control servers. Setting GOPROXY to "off" disallows downloading
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment