erigon-pulse/erigon-lib/tools/mod_tidy_check.sh

10 lines
174 B
Bash
Raw Normal View History

2023-09-22 07:04:25 +00:00
#!/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