goenv icon indicating copy to clipboard operation
goenv copied to clipboard

!!! can we replace https://golang.org with https://dl.google.com/go

Open exfly opened this issue 5 years ago • 1 comments
trafficstars

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

exfly avatar Jul 25 '20 12:07 exfly

tmp workrang: sed -i "s/golang.org\/dl/dl.google.com\/go/g" file && goenv install version

exfly avatar Sep 27 '20 01:09 exfly

Are you able to access go.dev? If so, we changed the mirror URL.

ChronosMasterOfAllTime avatar Nov 03 '22 03:11 ChronosMasterOfAllTime

resolved per comments in #168

ChronosMasterOfAllTime avatar Nov 11 '22 08:11 ChronosMasterOfAllTime