mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 09:46:56 +08:00
TeamCity: fix scripts selecting Go version (#2804)
s/golang.org/go.dev/
This commit is contained in:
committed by
GitHub
parent
cba1a524a8
commit
389cccf08b
@ -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
|
||||
|
||||
Reference in New Issue
Block a user