2015-07-30 02:37:31 +00:00
#!/usr/bin/env bash
2015-07-21 11:12:45 +00:00
2016-11-15 17:01:18 +00:00
deps=$(GO15VENDOREXPERIMENT=1 go list -f '{{join .Deps "\n"}}' . | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}' | grep -v "github.com/git-lfs/git-lfs")
2015-07-21 11:12:45 +00:00
# exit 0 means non-vendored deps were found
if [ $? -eq 0 ];
then
echo "Non vendored dependencies found:"
for d in $deps; do echo "\t$d"; done
2015-07-21 17:14:15 +00:00
echo
2016-05-24 14:01:35 +00:00
echo "These dependencies should be tracked in 'glide.yaml'."
echo "Consider running "glide update" or "glide get" to vendor a new dependency."
2015-07-21 11:12:45 +00:00
exit 1
else
echo "Looks good!"
fi