TeamCity: fix scripts selecting Go version (#2804)

s/golang.org/go.dev/
This commit is contained in:
Alessandro Arzilli
2021-11-24 22:09:43 +01:00
committed by GitHub
parent cba1a524a8
commit 389cccf08b
3 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ if [ "$version" = "gotip" ]; then
exit 0
fi
echo Building Go from tip
getgo $(curl https://golang.org/VERSION?m=text)
getgo $(curl https://go.dev/VERSION?m=text)
export GOROOT_BOOTSTRAP=$GOROOT
export GOROOT=/usr/local/go/go-tip
git clone https://go.googlesource.com/go /usr/local/go/go-tip
@ -35,7 +35,7 @@ if [ "$version" = "gotip" ]; then
cd -
else
echo Finding latest patch version for $version
version=$(curl 'https://golang.org/dl/?mode=json&include=all' | jq '.[].version' --raw-output | egrep ^$version'($|\.|beta|rc)' | sort -rV | head -1)
version=$(curl 'https://go.dev/dl/?mode=json&include=all' | jq '.[].version' --raw-output | egrep ^$version'($|\.|beta|rc)' | sort -rV | head -1)
echo "Go $version on $arch"
getgo $version
fi