mirror of
https://github.com/rancher/steve.git
synced 2025-08-17 22:06:28 +00:00
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)
15 lines
238 B
Bash
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
|