Skip to content

Commit

Permalink
go: Pin to 1.22.12 (#1295)
Browse files Browse the repository at this point in the history
Signed-off-by: Enrique Llorente <[email protected]>
  • Loading branch information
qinqon authored Feb 18, 2025
1 parent f76c945 commit e0558f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions automation/check-patch.setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ mkdir -p $tmp_dir
if gimme --help > /dev/null 2>&1; then

go_mod_version=$(grep '^go' go.mod |sed 's/go //')
full_version=$(curl -s https://go.dev/dl/?mode=json |jq -r .[].version |grep "$go_mod_version")
export GIMME_GO_VERSION=$(echo $full_version |sed 's/go//')
export GIMME_GO_VERSION=$(echo $go_mod_version |sed 's/go//')
echo "Installing go $GIMME_GO_VERSION with gimme"
eval "$(gimme)"
else
Expand Down
3 changes: 1 addition & 2 deletions build/install-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ os=linux
go_mod_version=$1

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

case $(uname -m) in
x86_64) arch="amd64";;
Expand All @@ -18,6 +17,6 @@ if [ "$arch" == "" ]; then
exit 1
fi

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

curl --retry 10 -L $tarball_url | tar -C /usr/local -zxf -
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/nmstate/kubernetes-nmstate

go 1.22
go 1.22.12

require (
github.com/evanphx/json-patch v5.6.0+incompatible
Expand Down

0 comments on commit e0558f3

Please sign in to comment.