From d118eced548292559aca8325fcd83db3c8b3373f Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 12 Dec 2017 10:25:38 +0000 Subject: [PATCH] Use the right linter versions (#370) Prefer the gometalinter and linters that we build to anything else kicking around on our PATH --- scripts/find-lint.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/find-lint.sh b/scripts/find-lint.sh index c7b66b28..3b1cbac6 100755 --- a/scripts/find-lint.sh +++ b/scripts/find-lint.sh @@ -11,10 +11,15 @@ # when running the linters, speeding them up but using much more memory. -set -eu +set -eux + +cd `dirname $0`/.. export GOPATH="$(pwd):$(pwd)/vendor" -export PATH="$PATH:$(pwd)/bin" + +# prefer the versions of gometalinter and the linters that we install +# to anythign that ends up on the PATH. +export PATH="$(pwd)/bin:$PATH" args="" if [ ${1:-""} = "fast" ]