Removing gofmt vendor ignores (#1321)

* Removing gofmt vendor ignores

We don't have a vendor directory anymore 😄 🎉

* wrapping env var in quotes

Thanks @chriscoffee for the suggestion!
This commit is contained in:
Aaron Schlesinger
2019-08-22 11:51:36 -07:00
committed by marpio
parent 16739a1213
commit 054edde824
+2 -2
View File
@@ -4,5 +4,5 @@
# Fail if a .go file hasn't been formatted with gofmt
set -euo pipefail
GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/) # All the .go files, excluding vendor/
test -z $(gofmt -s -d $GO_FILES | tee /dev/stderr)
GO_FILES=$(find . -iname '*.go' -type f) # All the .go files
test -z $(gofmt -s -d "$GO_FILES" | tee /dev/stderr)