Skip to content

Commit e0558f3

Browse files
authored
go: Pin to 1.22.12 (#1295)
Signed-off-by: Enrique Llorente <[email protected]>
1 parent f76c945 commit e0558f3

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

automation/check-patch.setup.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ mkdir -p $tmp_dir
1111
if gimme --help > /dev/null 2>&1; then
1212

1313
go_mod_version=$(grep '^go' go.mod |sed 's/go //')
14-
full_version=$(curl -s https://go.dev/dl/?mode=json |jq -r .[].version |grep "$go_mod_version")
15-
export GIMME_GO_VERSION=$(echo $full_version |sed 's/go//')
14+
export GIMME_GO_VERSION=$(echo $go_mod_version |sed 's/go//')
1615
echo "Installing go $GIMME_GO_VERSION with gimme"
1716
eval "$(gimme)"
1817
else

build/install-go.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ os=linux
66
go_mod_version=$1
77

88
dnf install -y jq
9-
full_version=$(curl -s https://go.dev/dl/?mode=json |jq -r .[].version |grep "$go_mod_version")
109

1110
case $(uname -m) in
1211
x86_64) arch="amd64";;
@@ -18,6 +17,6 @@ if [ "$arch" == "" ]; then
1817
exit 1
1918
fi
2019

21-
tarball_url="https://go.dev/dl/${full_version}.${os}-${arch}.tar.gz"
20+
tarball_url="https://go.dev/dl/go${version}.${os}-${arch}.tar.gz"
2221

2322
curl --retry 10 -L $tarball_url | tar -C /usr/local -zxf -

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/nmstate/kubernetes-nmstate
22

3-
go 1.22
3+
go 1.22.12
44

55
require (
66
github.com/evanphx/json-patch v5.6.0+incompatible

0 commit comments

Comments
 (0)