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:
uzxmx 2020-05-12 11:14:25 +08:00 committed by GitHub
parent b93b58b69e
commit 831b8db058
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"