-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: GOPROXY should not override GONOPROXY/GOPRIVATE #56477
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
Comments
has your |
Oh, good catch. Though I think you meant |
Oh yeah, good catch. I do that to mitigate VCS vulnerabilities. However, I would expect using https://go.dev/ref/mod#private-module-privacy explicitly says (emphasis mine)
and then it goes on to explain not to set |
I think heschi is correct in saying it's your https://go.dev/ref/mod#private-modules :
with an explicit |
You left out the very next sentence, which is key to the behaviors you observe here:
That also matches https://go.dev/ref/mod#environment-variables:
Because you have set (The |
As far as I can tell this is working as documented. It's unfortunate that the environment variables are this complex, but on the other hand I don't think most users are setting @FiloSottile, do you want to file a proposal for a behavior change here? Is there something we could do to clarify the documentation? (I'd be happy to review a CL to clean up the docs.) |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
A direct connection to c2sp.org.
What did you see instead?
Ignore the error, the point is that with GOPRIVATE set this request should not have reached the proxy.
The text was updated successfully, but these errors were encountered: