Open notobject opened 1 year ago
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. go1.20.6
, not about #55092. But I think it's basically obsoleted by the forward compatibility stuff launching in 1.21.
This is about the golang.org/x/dl commands, e.g.
go1.20.6
, not about #55092. But I think it's basically obsoleted by the forward compatibility stuff launching in 1.21.
Yes, 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.
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 go get
to download the toolchain release.
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