Skip to content

Commit d237bc4

Browse files
committed
.cirrus.yml: use Go 1.24
Also: 1. Change GO_VERSION to GO_VER_PREFIX, and move the "." from the jq argument to the variable value. It allows to use something like "1.25" to match "1.25rc" etc, but set to "1.24." for now to require a released 1.24.x version. 2. Change PREFIX to URL_PREFIX. Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 16d7336 commit d237bc4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.cirrus.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ task:
7777
env:
7878
HOME: /root
7979
CIRRUS_WORKING_DIR: /home/runc
80-
GO_VERSION: "1.23"
80+
GO_VER_PREFIX: "1.24."
8181
BATS_VERSION: "v1.9.0"
8282
RPMS: gcc git iptables jq glibc-static libseccomp-devel make criu fuse-sshfs container-selinux
8383
# yamllint disable rule:key-duplicates
@@ -117,10 +117,10 @@ task:
117117
[ $? -eq 0 ] # fail if yum failed
118118
119119
# Install Go.
120-
PREFIX="https://go.dev/dl/"
120+
URL_PREFIX="https://go.dev/dl/"
121121
# Find out the latest minor release URL.
122-
filename=$(curl -fsSL "${PREFIX}?mode=json&include=all" | jq -r --arg Ver "go$GO_VERSION." '. | map(select(.version | contains($Ver))) | first | .files[] | select(.os == "linux" and .arch == "amd64" and .kind == "archive") | .filename')
123-
curl -fsSL "$PREFIX$filename" | tar Cxz /usr/local
122+
filename=$(curl -fsSL "${URL_PREFIX}?mode=json&include=all" | jq -r --arg Ver "go$GO_VER_PREFIX" '. | map(select(.version | contains($Ver))) | first | .files[] | select(.os == "linux" and .arch == "amd64" and .kind == "archive") | .filename')
123+
curl -fsSL "$URL_PREFIX$filename" | tar Cxz /usr/local
124124
# install bats
125125
cd /tmp
126126
git clone https://github.com/bats-core/bats-core

0 commit comments

Comments
 (0)