diff --git a/_scripts/latestver.py b/_scripts/latestver.py index 886d476e..b8483009 100644 --- a/_scripts/latestver.py +++ b/_scripts/latestver.py @@ -19,7 +19,7 @@ def splitver(x): return v ver = sys.argv[1] -d = json.loads(urllib.urlopen('https://golang.org/dl/?mode=json&include=all').read()) +d = json.loads(urllib.urlopen('https://go.dev/dl/?mode=json&include=all').read()) ds = sorted(d, reverse=True, key=lambda it: splitver(it['version'][2:])) for x in ds: if x['version'][:len(ver)] == ver: diff --git a/_scripts/test_linux.sh b/_scripts/test_linux.sh index 5bd251f8..3fe0c1fd 100755 --- a/_scripts/test_linux.sh +++ b/_scripts/test_linux.sh @@ -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 diff --git a/_scripts/test_mac.sh b/_scripts/test_mac.sh index f4395a84..e48cbf0e 100644 --- a/_scripts/test_mac.sh +++ b/_scripts/test_mac.sh @@ -12,7 +12,7 @@ if [ "$GOVERSION" = "gotip" ]; then if [ "$arch" != "amd64" ]; then exit 0 fi - bootstrapver=$(curl https://golang.org/VERSION?m=text) + bootstrapver=$(curl https://go.dev/VERSION?m=text) cd $TMPDIR curl -sSL "https://storage.googleapis.com/golang/$bootstrapver.darwin-$ARCH.tar.gz" | tar -xz cd -