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.
pull/3213/head
Thomas Stromberg 2018-10-04 13:19:40 -07:00
parent 2ebdf5e1eb
commit d569a42554
1 changed files with 1 additions and 1 deletions

View File

@ -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"