diff --git a/Makefile b/Makefile index 8bcd4c3947..af4b85bdf7 100644 --- a/Makefile +++ b/Makefile @@ -208,7 +208,8 @@ fmt: ## format the Go and template code .PHONY: fmt-check fmt-check: fmt - @diff=$$(git diff --color=always $(GO_SOURCES) templates $(WEB_DIRS)); \ + @shopt -s extglob; \ + diff=$$(git diff --color=always $(GO_SOURCES) $(shell find templates -type f -not -name "v1_groups.json") $(WEB_DIRS)); \ if [ -n "$$diff" ]; then \ echo "Please run 'make fmt' and commit the result:"; \ printf "%s" "$${diff}"; \