summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8d9702ac83..6074f541c7 100644
--- a/Makefile
+++ b/Makefile
@@ -282,7 +282,10 @@ errcheck:
.PHONY: revive
revive:
- GO111MODULE=on $(GO) run -mod=vendor build/lint.go -config .revive.toml -exclude=./vendor/... ./... || exit 1
+ @hash revive > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
+ GO111MODULE=off $(GO) get -u github.com/mgechev/revive; \
+ fi
+ @revive -config .revive.toml -exclude=./vendor/... ./...
.PHONY: misspell-check
misspell-check: