From e6802c00bc4c42f6370d6cb232aa091ae4825d9d Mon Sep 17 00:00:00 2001 From: Adam Reese Date: Wed, 30 Mar 2016 10:39:37 -0700 Subject: [PATCH] fix(govet): fixes output on go vet --- scripts/validate-go.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/validate-go.sh b/scripts/validate-go.sh index 5c824e63e..0f60f291a 100755 --- a/scripts/validate-go.sh +++ b/scripts/validate-go.sh @@ -36,11 +36,9 @@ for pkg in $(glide nv); do done echo "==> Running go vet..." -if ! vet_out=$(go vet "$(glide nv)" 2>&1); then - echo - echo "${red}${vet_out}${reset}" - exit_code=1 -fi +echo -n "$red" +go vet $(glide nv) 2>&1 | grep -v "^exit status " || exit_code=${PIPESTATUS[0]} +echo -n "$reset" echo "==> Running gofmt..." failed_fmt=$(find_go_files | xargs gofmt -s -l)