From 61b2e875cd400af450eac40ac5ed8d034f50af02 Mon Sep 17 00:00:00 2001 From: Matt Butcher Date: Mon, 22 Feb 2016 17:13:07 -0700 Subject: [PATCH] fix(Makefile): improve gofmt output on errors --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b79e1a6f1..da844291f 100644 --- a/Makefile +++ b/Makefile @@ -50,8 +50,8 @@ test: test-style $(PATH_WITH_HELM) go test -v -cover $(addprefix ./,$(GO_PACKAGES)) test-style: - @if [ $(shell gofmt -e -l -s *.go $(GO_PACKAGES)) ]; then \ - echo "gofmt check failed:"; gofmt -e -l -s *.go $(GO_PACKAGES); exit 1; \ + @if [ $(shell gofmt -e -l -s $(GO_PACKAGES)) ]; then \ + echo "gofmt check failed:"; gofmt -e -d -s $(GO_PACKAGES); exit 1; \ fi @for i in . $(GO_PACKAGES); do \ golint $$i; \