scripts: updatedep.sh to update vendored dependencies

Running godep in the vendored cmd directory will try to pull etcd in
as a dependency. As a fix, this script safely vendors into cmd.
release-3.0
Anthony Romano 2016-04-06 14:37:23 -07:00
parent 34375ef851
commit ac232ac9a7
1 changed files with 12 additions and 0 deletions

12
scripts/updatedep.sh Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
# A script for updating godep dependencies for the vendored directory /cmd/
# without pulling in etcd itself as a dependency.
rm -rf Godeps vendor
ln -s cmd/vendor vendor
godep save ./...
rm -rf cmd/Godeps
rm vendor
mv Godeps cmd/