1
0
mirror of https://github.com/rancher/steve.git synced 2025-08-17 22:06:28 +00:00
steve/scripts/validate.sh
Eric Promislow 7788950c3b Lock k8s.io at 0.28.6 for steve release/v0.2 => rancher v2.8
Other changes required by CI:

golangci-lint 1.54 can't process nested RWSync, so bump to 1.60.3

Fix typo in validate.sh -- should be  `go generate ./...` not `./..` (two dots)
2025-04-23 13:56:18 -07:00

15 lines
238 B
Bash

#!/bin/bash
set -e
go generate ./...
golangci-lint run
go mod tidy
go mod verify
unclean=$(git status --porcelain --untracked-files=no)
if [ -n "$unclean" ]; then
echo "Encountered dirty repo!"
echo "$unclean"
git diff
exit 1
fi