Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 prow fix go version validate #3019

Merged
merged 1 commit into from
Oct 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
prow fix go version validate
Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt>
  • Loading branch information
mjudeikis committed Oct 10, 2023
commit 6b243835dc5cc2df0e96dfc68d197e684d1e1fde
3 changes: 3 additions & 0 deletions hack/verify-go-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ for f in docs/content/CONTRIBUTING.md; do
grep "golang.org/doc/install" "$f" | { ! grep -v "${VERSION}"; } || { echo "Wrong go version in $f; expected ${VERSION}"; exit 1; }
done

# Check prow config
grep "ghcr.io/kcp-dev/infra/build" ".prow.yaml" | { ! grep -v "${VERSION}"; } || { echo "Wrong go version in .prow.yaml; expected ${VERSION}"; exit 1; }

if [ -z "${IGNORE_GO_VERSION}" ]; then
go version | { ! grep -v go${VERSION}; } || { echo "Unexpected go version installed, expected ${VERSION}. Use IGNORE_GO_VERSION=1 to skip this check."; exit 1; }
fi