Skip to content

Commit

Permalink
Merge pull request #3170 from neolit123/1.33-print-go-version-fix-man…
Browse files Browse the repository at this point in the history
…ifest-list-error

print go version and update to go 1.24 of verify-manfiest-lists.sh
  • Loading branch information
k8s-ci-robot authored Mar 3, 2025
2 parents c678292 + 3625635 commit e7ef8a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions kinder/ci/kinder-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ WORKFLOW_BUCKET_PATH="${SCRIPT_PATH}/workflows"
# build kinder
pushd "${ROOT_PATH}"
echo "Building kinder..."
go version
GO111MODULE=on go build
popd

Expand Down
8 changes: 6 additions & 2 deletions tests/e2e/manifests/verify_manifest_lists.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ fi

# install go if missing
if ! `go version > /dev/null`; then
curl -sSL https://dl.google.com/go/go1.16.linux-amd64.tar.gz -o "/${TMP}/go.tar.gz"
curl -sSL https://go.dev/dl/go1.24.0.linux-amd64.tar.gz -o "/${TMP}/go.tar.gz"
tar -C /usr/local -xzf "/${TMP}/go.tar.gz"
export PATH="$PATH":/usr/local/go/bin
rm "/${TMP}/go.tar.gz"
go version
fi

# api-machinery requires gcc
Expand All @@ -47,7 +48,10 @@ cd "$LPATH"
# use go modules. this forces using the latest k8s.io/apimachinery package.
go mod init verify-manifest-lists

# add module requirements and sums (required in go 1.16)
# pin the apimachinery version
printf "\nrequire k8s.io/apimachinery v0.32.2" >> go.mod

# add module requirements and sums (required in go >1.16)
go mod tidy

# run unit tests
Expand Down

0 comments on commit e7ef8a7

Please sign in to comment.