mirror of
https://github.com/containers/skopeo.git
synced 2025-05-03 21:46:27 +00:00
(go list) removes the vendor subdirectory automatically since Go 1.9. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
17 lines
337 B
Bash
Executable File
17 lines
337 B
Bash
Executable File
#!/bin/bash
|
|
|
|
errors=$(go vet $mod_vendor $(go list $mod_vendor -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
|
|
false
|
|
fi
|