mirror of
https://github.com/kennyp/asdf-golang.git
synced 2024-10-06 04:32:07 +08:00
Switch to dl.google.com
* Update default url when installing Signed-off-by: Mingxiang Xue <mingxiangxue@gmail.com> * Cleanup unneeded BASE_URL Signed-off-by: Mingxiang Xue <mingxiangxue@gmail.com>
This commit is contained in:
parent
b93b58b69e
commit
831b8db058
@ -54,7 +54,7 @@ install_golang () {
|
||||
local arch=$(get_arch)
|
||||
local tempdir=$(my_mktemp $platform)
|
||||
|
||||
curl "https://storage.googleapis.com/golang/go${version}.${platform}-${arch}.tar.gz" -o "${tempdir}/archive.tar.gz"
|
||||
curl "https://dl.google.com/go/go${version}.${platform}-${arch}.tar.gz" -o "${tempdir}/archive.tar.gz"
|
||||
|
||||
tar -C "$install_path" -xzf "${tempdir}/archive.tar.gz"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user