diff --git a/scripts/find-lint.sh b/scripts/find-lint.sh index 2273ce67f..d4072508c 100755 --- a/scripts/find-lint.sh +++ b/scripts/find-lint.sh @@ -19,10 +19,10 @@ cd `dirname $0`/.. # We should move from gometalinter asap as per https://github.com/matrix-org/dendrite/issues/697 so this is a temporary # measure. It is not, however, in the scope of this PR. export GO111MODULE=off -export GOPATH="$(pwd):$(pwd)/vendor" +export GOPATH="$(pwd)/vendor:$GOPATH" # prefer the versions of gometalinter and the linters that we install # to anythign that ends up on the PATH. -export PATH="$(pwd)/bin:$(pwd)/vendor/bin:$PATH" +export PATH="$(pwd)/vendor/bin:$PATH" args="" if [ ${1:-""} = "fast" ]