cli/scripts/validate

15 lines
225 B
Bash
Executable File

#!/bin/bash
set -e
cd $(dirname $0)/..
echo Tidying up modules
go mod tidy
echo Verifying modules
go mod verify
if [ -n "$(git status --porcelain --untracked-files=no)" ]; then
echo "Encountered dirty repo!"
exit 1
fi