goenv
goenv copied to clipboard
!!! can we replace https://golang.org with https://dl.google.com/go
https://github.com/syndbg/goenv/commit/42e51f92cdc4f69473346b6004d10e5b55c61e92
Golang.org is not accessible in some areas like china. And https://golang.org/dl/sone.pkg will eventually jump to https://dl.google.com/go/sone.pkg to perform the download.
Can we replace golang.org with dl.google.com/go Or provide an option to replace the prefix of the download url?
https://golang.org/dl/go1.14.6.linux-amd64.tar.gz -> https://dl.google.com/go/go1.14.6.linux-amd64.tar.gz
prefix = https://golang.org/dl or https://dl.google.com/go
$prefix//go1.14.6.linux-amd64.tar.gz
ref: gwf in china https://en.wikipedia.org/wiki/Great_Firewall https://github.com/golang/go/issues/8870 https://blog.golang.org/hello-china
tmp workrang: sed -i "s/golang.org\/dl/dl.google.com\/go/g" file && goenv install version
Are you able to access go.dev? If so, we changed the mirror URL.
resolved per comments in #168