We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d583c1c commit 25eb476Copy full SHA for 25eb476
1 file changed
scripts/subtests/lint
@@ -5,14 +5,10 @@ set -o pipefail
5
6
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
7
8
-set +e
9
-golangci_lint_executable=$(which golangci-lint)
10
-set -e
11
-if [ -z "${golangci_lint_executable}" ] || [ ! -x "${golangci_lint_executable}" ]; then
+if ! command -v golangci-lint &> /dev/null; then
12
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest
13
fi
14
15
pushd "${SCRIPT_DIR}/../../src" > /dev/null
16
golangci-lint run ./...
17
-popd > /dev/null
18
-
+popd > /dev/null
0 commit comments