mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

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.
13 lines
254 B
Bash
Executable File
13 lines
254 B
Bash
Executable File
#!/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/
|
|
|