_scripts: fix command to download Go version (#3099)

We should exclude rc/beta versions as we already run tests
against tip, we don't explicitly test RC versions.
This commit is contained in:
Derek Parker 2022-08-09 11:06:42 -07:00 committed by GitHub
parent 65cfd25787
commit db9770fe9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -31,7 +31,7 @@ if [ "$version" = "gotip" ]; then
cd -
else
echo Finding latest patch version for $version
version=$(curl 'https://go.dev/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