From b854bf63f9130e209c425fbe1a9a91e56ad9bfff Mon Sep 17 00:00:00 2001 From: Qiang Huang Date: Wed, 5 Jul 2017 15:52:58 +0800 Subject: [PATCH] Makefile: use -set_exit_status for golint We used to use this option but it's reverted in #231 , not sure about the reason, it's simpler than to use the OUT hack. Signed-off-by: Qiang Huang --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 31b4ca10..79526067 100644 --- a/Makefile +++ b/Makefile @@ -54,7 +54,7 @@ test: .gofmt .govet .golint .gotest go vet -x $(PACKAGES) .golint: - OUT=$$(golint $(PACKAGES)); if test -n "$${OUT}"; then echo "$${OUT}" && exit 1; fi + golint -set_exit_status $(PACKAGES) UTDIRS = ./validate/... .gotest: