mirror of
https://github.com/containers/skopeo.git
synced 2025-04-27 02:51:02 +00:00
The errors are printed on stderr, so read that. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
17 lines
326 B
Bash
Executable File
17 lines
326 B
Bash
Executable File
#!/bin/bash
|
|
|
|
errors=$(go vet -tags="${BUILDTAGS}" ./... 2>&1)
|
|
|
|
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
|