github.com/stffabi/git-lfs@v2.3.5-0.20180214015214-8eeaa8d88902+incompatible/script/lint (about) 1 #!/usr/bin/env bash 2 3 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") 4 5 # exit 0 means non-vendored deps were found 6 if [ $? -eq 0 ]; 7 then 8 echo "Non vendored dependencies found:" 9 for d in $deps; do echo "\t$d"; done 10 echo 11 echo "These dependencies should be tracked in 'glide.yaml'." 12 echo "Consider running "glide update" or "glide get" to vendor a new dependency." 13 exit 1 14 else 15 echo "Looks good!" 16 fi