mirror of
https://github.com/containers/skopeo.git
synced 2025-09-16 15:00:14 +00:00
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:
16
hack/validate-vet.sh
Executable file
16
hack/validate-vet.sh
Executable 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
|
Reference in New Issue
Block a user