You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
// versionArchiveURL returns the zip or tar.gz URL of the given Go version.funcversionArchiveURL(versionstring) string {
goos:=getOS()
ext:=".tar.gz"ifgoos=="windows" {
ext=".zip"
}
arch:=runtime.GOARCHifgoos=="linux"&&runtime.GOARCH=="arm" {
arch="armv6l"
}
downloadURL:="https://dl.google.com/go/"// TODO use GODLPROXY if not empty returndownloadURL+version+"."+goos+"-"+arch+ext
}
The text was updated successfully, but these errors were encountered:
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.
ianlancetaylor
changed the title
proposal: dl: add GODLPROXY= for support to specify the download site of the go installation package
proposal: x/dl: add GODLPROXY= for support to specify the download site of the go installation package
Jul 12, 2023
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: