Use the right linter versions

Prefer the gometalinter and linters that we build to anything else kicking
around on our PATH
This commit is contained in:
Richard van der Hoff 2017-12-08 18:25:16 +00:00
parent 16f593f786
commit 24dbc9231a

View file

@ -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" ]