From f8f5a25fe2c7e20be522ed9aceecc463730b0a8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Wed, 5 Apr 2023 20:37:48 +0200 Subject: [PATCH] Actually fail if (go vet) fails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The errors are printed on stderr, so read that. Signed-off-by: Miloslav Trmač --- hack/validate-vet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/validate-vet.sh b/hack/validate-vet.sh index a661c15f..35e2b1f4 100755 --- a/hack/validate-vet.sh +++ b/hack/validate-vet.sh @@ -1,6 +1,6 @@ #!/bin/bash -errors=$(go vet -tags="${BUILDTAGS}" ./...) +errors=$(go vet -tags="${BUILDTAGS}" ./... 2>&1) if [ -z "$errors" ]; then echo 'Congratulations! All Go source files have been vetted.'