diff options
author | Nick Thomas <nick@gitlab.com> | 2018-10-24 16:20:36 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-10-24 17:06:13 +0300 |
commit | 50b636b5d54962924bb2d40d184976a63cc1ae83 (patch) | |
tree | c8c0050a64868cf96dc6f6b2a601da4a723d9932 | |
parent | 161347ef496e73ff686242d2a19725c81a844d58 (diff) |
Improve detection and error-handling of fmt errors
-rw-r--r-- | Makefile.util.mk | 2 |
1 files changed, 1 insertions, 1 deletions
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) |