Don't use hack/make.sh for validate-vet

hack/make.sh now does not make a difference, so simplify.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
Miloslav Trmač
2023-04-05 19:57:03 +02:00
parent 225f239a69
commit 43090b2917
2 changed files with 3 additions and 2 deletions

16
hack/validate-vet.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
errors=$(go vet -tags="${BUILDTAGS}" $(go list -e ./...))
if [ -z "$errors" ]; then
echo 'Congratulations! All Go source files have been vetted.'
else
{
echo "Errors from go vet:"
echo "$errors"
echo
echo 'Please fix the above errors. You can test via "go vet" and commit the result.'
echo
} >&2
exit 1
fi