From 8e085b116409e67dfe7fb88796f31e6dee0f37f6 Mon Sep 17 00:00:00 2001 From: Tommie Gannert Date: Sun, 26 Sep 2021 15:29:19 +0200 Subject: [PATCH] Add GOPATH to PATH in find-lint.sh. The user doesn't necessarily have it in PATH. --- build/scripts/find-lint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/scripts/find-lint.sh b/build/scripts/find-lint.sh index af87e14d7..e3564ae38 100755 --- a/build/scripts/find-lint.sh +++ b/build/scripts/find-lint.sh @@ -33,7 +33,7 @@ echo "Looking for lint..." # Capture exit code to ensure go.{mod,sum} is restored before exiting exit_code=0 -golangci-lint run $args || exit_code=1 +PATH="$PATH:${GOPATH:-~/go}/bin" golangci-lint run $args || exit_code=1 # Restore go.{mod,sum} mv go.mod.bak go.mod && mv go.sum.bak go.sum