diff --git a/Makefile b/Makefile index e04e3481..53516a0a 100644 --- a/Makefile +++ b/Makefile @@ -223,7 +223,8 @@ test-all-local: validate-local validate-docs test-unit-local .PHONY: validate-local validate-local: - BUILDTAGS="${BUILDTAGS}" hack/make.sh validate-git-marks validate-gofmt validate-lint + BUILDTAGS="${BUILDTAGS}" hack/make.sh validate-git-marks validate-gofmt + hack/validate-lint.sh BUILDTAGS="${BUILDTAGS}" hack/validate-vet.sh # This invokes bin/skopeo, hence cannot be run as part of validate-local diff --git a/hack/make/validate-lint b/hack/validate-lint.sh similarity index 98% rename from hack/make/validate-lint rename to hack/validate-lint.sh index a59b28c1..cc756902 100755 --- a/hack/make/validate-lint +++ b/hack/validate-lint.sh @@ -24,5 +24,5 @@ else echo 'Please fix the above errors. You can test via "golint" and commit the result.' echo } >&2 - false + exit 1 fi