Show help message when goimports/go mod tidy breaks the build

This commit is contained in:
Deluan 2023-01-13 08:58:41 -05:00 committed by Joe Stump
parent 2bbd1b3484
commit 9e1ee495ca
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -39,6 +39,7 @@ jobs:
run: |
git status --porcelain
if [ -n "$(git status --porcelain)" ]; then
echo 'To fix this check, run "goimports -w $(find . -name '*.go' | grep -v '_gen.go$') && go mod tidy"'
exit 1
fi