diff --git a/Makefile b/Makefile index ba847f19c..0db020be9 100644 --- a/Makefile +++ b/Makefile @@ -69,7 +69,7 @@ check-lint: ## Run linter in CI/CD. If running locally use 'lint' check-fmt: ## Fail if not formatted go get golang.org/x/tools/cmd/goimports - goimports -d $$(find . -type f -name '*.go' ! -path "./vendor/*" ! -path "./server/static/bindata_assetfs.go" ! -path "**/mocks/*") + if [[ $$(goimports -l $$(find . -type f -name '*.go' ! -path "./vendor/*" ! -path "./server/static/bindata_assetfs.go" ! -path "**/mocks/*")) ]]; then exit 1; fi end-to-end-deps: ## Install e2e dependencies ./scripts/e2e-deps.sh