-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: GONOPROXY is undocumented #32056
Comments
Some specific questions:
|
Also note that all environment variables should be documented at https://golang.org/cmd/go/#hdr-Environment_variables. These new variables are not mentioned there. |
One more question to document:
|
I find it a bit odd that GONOPROXY is using sh-style globs anyway, given that GONOPROXY holds a set of package paths (AIUI) not URLs, and package paths are almost always matched with patterns as documented in That is, I'd expect:
to avoid the proxy for all modules under |
If GOPROXY=off and GONOPROXY=* (say), then I think GONOPROXY wins. No matter what GOPROXY is set to, GONOPROXY matching the module means don't pay attention to that. |
@rogpeppe, I see your point but I was trying to line up a bit with the standard NO_PROXY (for example https://www.gnu.org/software/emacs/manual/html_node/url/Proxies.html). Also I think it would be just too hard to write something like |
I guess I don't understand the GONOPROXY semantics (the whole point of this thread, and probably why I can't get it to work for me); how is |
The have different behavior for packages such as |
Change https://golang.org/cl/178179 mentions this issue: |
Change https://golang.org/cl/179219 mentions this issue: |
…dules' GOSUMDB and GONOSUMDB are described in detail by 'go help module-auth'. So, this change mentions the two variables and says to see 'go help module-auth'. This also adds GONOPROXY to 'go help environment'. Fixes #32292 and updates #32056. Change-Id: I2eae0f906a3fbfcb88ad5c8fb4870917d0d7bbcd Reviewed-on: https://go-review.googlesource.com/c/go/+/179219 Reviewed-by: Russ Cox <rsc@golang.org>
GOSUMDB
,GONOSUMDB
, andGONOPROXY
variables were added in CL 173951.Documentation for
GOSUMDB
andGONOSUMDB
was added to https://tip.golang.org/cmd/go/#hdr-Module_authentication_failures, but I don't see any mention ofGONOPROXY
in thecmd/go
docs at all.CC @jayconrod @rsc
The text was updated successfully, but these errors were encountered: