Skip to content

Commit

Permalink
fix check-clean make target
Browse files Browse the repository at this point in the history
  • Loading branch information
Fitzse committed Dec 19, 2024
1 parent 08d716f commit 9bc5979
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ generate:
cd tools; go generate

check-clean:
@git diff --exit-code || (echo "\033[0;31mWorking directory is not clean - did you run 'make generate' and commit the changes?" && exit 1)
@if [ -n "$$(git status --porcelain)" ]; then \
echo "\033[0;31mWorking directory is not clean - did you run 'make generate' and commit the changes?"; \
exit 1; \
fi

.PHONY: install build test lint generate check-clean test-acc

0 comments on commit 9bc5979

Please sign in to comment.