GOPROXY cannot fallback to direct connection #33725
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, It is the latest version
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I try to use https://goproxy.cn as my GOPROXY, to be compatible with private repos (which are not accessible from the internet, I set my GOPROXY as:
export GOPROXY=https://goproxy.cn,direct
The notion of ",direct" is added according to document here:
https://tip.golang.org/cmd/go/#hdr-Module_downloading_and_verification
What did you expect to see?
When I run
go build
, orgo mod tidy
etc. private dependencies are downloaded successfully.What did you see instead?
invalid $GOPROXY setting: cannot have comma
If I do not add ",direct", the proxy simply returns a
404 Not Found
The text was updated successfully, but these errors were encountered: