From 50b636b5d54962924bb2d40d184976a63cc1ae83 Mon Sep 17 00:00:00 2001 From: Nick Thomas Date: Wed, 24 Oct 2018 14:20:36 +0100 Subject: Improve detection and error-handling of fmt errors --- Makefile.util.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile.util.mk') diff --git a/Makefile.util.mk b/Makefile.util.mk index f43fe7b2..626d146b 100644 --- a/Makefile.util.mk +++ b/Makefile.util.mk @@ -3,7 +3,7 @@ verify: list fmt vet lint complexity fmt: bin/goimports .GOPATH/.ok - $Q ./bin/goimports -local $(IMPORT_PATH) -l $(allfiles) | awk '{ print } END { if (NR>1) { print "Please run go fmt"; exit 1 } }' + $Q @./bin/goimports -local $(IMPORT_PATH) -l $(allfiles) | awk '{ print } END { if (NR>0) { print "Please run ./bin/goimports -w -local $(IMPORT_PATH) -l $(allfiles)"; exit 1 } }' vet: .GOPATH/.ok $Q go vet $(allpackages) -- cgit v1.2.3