From b5aebe41e95a0e7c7d117748d4b3f6dc32009a10 Mon Sep 17 00:00:00 2001 From: Matt Butcher Date: Wed, 20 Apr 2016 17:39:02 -0600 Subject: [PATCH] fix(Makefile): skip gofmt on proto gen code --- scripts/validate-go.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/validate-go.sh b/scripts/validate-go.sh index a99af956e..cf4e4a8f6 100755 --- a/scripts/validate-go.sh +++ b/scripts/validate-go.sh @@ -13,9 +13,10 @@ find_go_files() { } hash golint 2>/dev/null || go get -u github.com/golang/lint/golint +hash godir 2>/dev/null || go get -u github.com/Masterminds/godir echo "==> Running golint..." -for pkg in $(glide nv); do +for pkg in $(godir pkgs | grep -v proto); do if golint_out=$(golint "$pkg" 2>&1); then echo "${yellow}${golint_out}${reset}" fi @@ -23,7 +24,7 @@ done echo "==> Running go vet..." echo -n "$red" -go vet $(glide nv) 2>&1 | grep -v "^exit status " || exit_code=${PIPESTATUS[0]} +go vet $(godir pkgs) 2>&1 | grep -v "^exit status " || exit_code=${PIPESTATUS[0]} echo -n "$reset" echo "==> Running gofmt..."