mirror of https://github.com/rancher/webhook.git
26 lines
392 B
Bash
Executable File
26 lines
392 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
echo Running go mod checks
|
|
|
|
echo Running: go generate
|
|
go generate ./...
|
|
|
|
echo Running: go mod tidy
|
|
go mod tidy
|
|
|
|
echo Running: go mod verify
|
|
go mod verify
|
|
|
|
source ./scripts/version
|
|
|
|
if [ -n "$DIRTY" ]; then
|
|
echo Git is dirty
|
|
echo "You may need to run 'go generate' to re-generate the docs."
|
|
git status
|
|
git --no-pager diff
|
|
exit 1
|
|
fi
|