Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-10-24 16:20:36 +0300
committerNick Thomas <nick@gitlab.com>2018-10-24 17:06:13 +0300
commit50b636b5d54962924bb2d40d184976a63cc1ae83 (patch)
treec8c0050a64868cf96dc6f6b2a601da4a723d9932
parent161347ef496e73ff686242d2a19725c81a844d58 (diff)
Improve detection and error-handling of fmt errors
-rw-r--r--Makefile.util.mk2
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)