blob: 9b8529701631b019bb3edd0eafb9f9ce3188e021 [file] [log] [blame]
#!/bin/bash -e
# updates the vendored copy of the repository and
# stages the result, ready for "git commit".
# The dep command can be obtained with "go get".
# Update the package.
dep ensure -update
# Remove any vendored packages we don't use.
dep prune
# Delete test files.
find vendor -name '*_test.go' -delete
# Delete Google Cloud JSON API schemas.
find vendor -name '*-api.json' -delete
# Delete the cacheserver sources, which appear in the vendor directory because
# we depend on cacheutil (a bug or deficiency in dep).
find vendor/ -type f -depth 1 -delete
git add vendor Gopkg.lock
git gofmt