Use the right linter versions (#370)

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-12 10:25:38 +00:00 committed by GitHub
parent 568c6f7c66
commit d118eced54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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