From d569a42554544cf7f7d52e25dcc0060affbc257a Mon Sep 17 00:00:00 2001 From: Thomas Stromberg Date: Thu, 4 Oct 2018 13:19:40 -0700 Subject: [PATCH] Output the gofmt diff rather than just listing files. It is otherwise difficult to debug issues when a contributors gofmt version differs from the one Travis uses. --- test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.sh b/test.sh index 924614cb68..abeeb4c783 100755 --- a/test.sh +++ b/test.sh @@ -48,7 +48,7 @@ ignore="vendor\|\_gopath\|assets.go\|out" # Check gofmt echo "Checking gofmt..." set +e -files=$(gofmt -l -s . | grep -v ${ignore}) +files=$(gofmt -d -s . | grep -v ${ignore}) set -e if [[ $files ]]; then echo "Gofmt errors in files: $files"