From 8afb9cb8f30614f7c88b287f1ebbf32b66f877eb Mon Sep 17 00:00:00 2001 From: dfawley Date: Wed, 20 Sep 2017 11:19:09 -0700 Subject: [PATCH] vet.sh: set PATH to force downloaded binaries to be run (#1529) --- vet.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vet.sh b/vet.sh index 5cdde609..e478188f 100755 --- a/vet.sh +++ b/vet.sh @@ -14,6 +14,8 @@ if git status --porcelain | read; then die "Uncommitted or untracked files found; commit changes first" fi +PATH="$GOPATH/bin:$GOROOT/bin:$PATH" + # Check proto in manual runs or cron runs. if [[ "$TRAVIS" != "true" || "$TRAVIS_EVENT_TYPE" = "cron" ]]; then check_proto="true" @@ -68,7 +70,7 @@ set -o pipefail git reset --hard HEAD if [[ "$check_proto" = "true" ]]; then - PATH=/home/travis/bin:$PATH make proto && \ + PATH="/home/travis/bin:$PATH" make proto && \ git status --porcelain 2>&1 | (! read) || \ (git status; git --no-pager diff; exit 1) fi