-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
proposal: x/dl: add GODLPROXY= for support to specify the download site of the go installation package #61296
Comments
Have you considered the existing proxy support in the net/http package via the HTTPS_PROXY and similar environment variables? |
I thought the original discussion in #55092 proposed using the module proxy directly? |
This is about the golang.org/x/dl commands, e.g. |
Yes, this proposal is about multi-version. see Managing Go installations |
For each toolchain release, we can create a Go module project by using the Go embedding feature to embed the whole toolchain release, so that the dl command can be re-written to call |
add GODLPROXY= to specify the download site of the go installation package, and use the current address (https://dl.google.com/go/) as the default value instead of the only value
this proposal is about multi-version. see Managing Go installations
I have installed 1.16.2 now, and I also want to experience 1.20.5, so I found pkg golang.org/dl, But when I try to execute go1.20.5 download, its default behavior is to download the compressed file required from https://dl.google.com/go, and this address cannot be configured. I can't connect to this address in my development environment, but there are mirror sites that can replace it, so I propose to add an environment variable to allow the configuration of the download address.
file dl/internal/version/version.go
The text was updated successfully, but these errors were encountered: