erigon-pulse/erigon-lib/tools/mod_tidy_check.sh
2023-09-22 14:04:25 +07:00

10 lines
174 B
Bash
Executable File

#!/bin/bash
go mod tidy
if ! git diff --exit-code -- go.mod go.sum
then
echo "ERROR: go.mod/sum is not tidy. Run 'go mod tidy' in $PWD and commit the changes."
exit 1
fi