diff --git a/scripts/vet-proto.sh b/scripts/vet-proto.sh index e46be0c8e73d..63a8ac8a7dff 100755 --- a/scripts/vet-proto.sh +++ b/scripts/vet-proto.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash set -ex # Exit on error; debugging enabled. set -o pipefail # Fail a pipe if any sub-command fails. diff --git a/scripts/vet.sh b/scripts/vet.sh index 9db7b9ea35cb..c32b6ea35ecf 100755 --- a/scripts/vet.sh +++ b/scripts/vet.sh @@ -90,7 +90,7 @@ for MOD_FILE in $(find . -name 'go.mod'); do go mod tidy -compat=1.21 git status --porcelain 2>&1 | fail_on_output || \ (git status; git --no-pager diff; exit 1) - + # - Collection of static analysis checks SC_OUT="$(mktemp)" staticcheck -go 1.21 -checks 'all' ./... >"${SC_OUT}" || true