From 054edde82404cc359c21bb9a965e2b57ea0bf9fa Mon Sep 17 00:00:00 2001 From: Aaron Schlesinger <70865+arschles@users.noreply.github.com> Date: Thu, 22 Aug 2019 11:51:36 -0700 Subject: [PATCH] Removing gofmt vendor ignores (#1321) * Removing gofmt vendor ignores We don't have a vendor directory anymore :smile: :tada: * wrapping env var in quotes Thanks @chriscoffee for the suggestion! --- scripts/check_gofmt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/check_gofmt.sh b/scripts/check_gofmt.sh index 66bc6f90..67d6dd34 100755 --- a/scripts/check_gofmt.sh +++ b/scripts/check_gofmt.sh @@ -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)