diff --git a/scripts/vet.sh b/scripts/vet.sh index 21c4cda4bbdb..08d17927f264 100755 --- a/scripts/vet.sh +++ b/scripts/vet.sh @@ -19,10 +19,14 @@ noret_grep() { cleanup() { git reset --hard HEAD } + +go version +which go trap cleanup EXIT PATH="${HOME}/go/bin:${GOROOT}/bin:${PATH}" go version +which go if [[ "$1" = "-install" ]]; then # Install the pinned versions as defined in module tools.