2016-09-20 08:16:59 +00:00
#!/usr/bin/env bash
set -e
# this script is used to update vendored dependencies
#
# Usage:
# vendor.sh revendor all dependencies
# vendor.sh github.com/docker/engine-api revendor only the engine-api dependency.
# vendor.sh github.com/docker/engine-api v0.3.3 vendor only engine-api at the specified tag/commit.
# vendor.sh git github.com/docker/engine-api v0.3.3 is the same but specifies the VCS for cases where the VCS is something else than git
# vendor.sh git golang.org/x/sys eb2c74142fd19a79b3f237334c7384d5167b1b46 https://github.com/golang/sys.git vendor only golang.org/x/sys downloading from the specified URL
cd " $( dirname " $BASH_SOURCE " ) /.. "
source 'hack/.vendor-helpers.sh'
case $# in
0)
rm -rf vendor/
; ;
# If user passed arguments to the script
1)
path = " $PWD /hack/vendor.sh "
if ! cloneGrep = " $( grep -E " ^clone [^ ]+ $1 " " $path " ) " ; then
echo >& 2 " error: failed to find 'clone ... $1 ' in $path "
exit 1
fi
eval " $cloneGrep "
clean
exit 0
; ;
2)
rm -rf " vendor/src/ $1 "
clone git " $1 " " $2 "
clean
exit 0
; ;
[ 34] )
rm -rf " vendor/src/ $2 "
clone " $@ "
clean
exit 0
; ;
*)
>& 2 echo "error: unexpected parameters"
exit 1
; ;
esac
2016-10-13 17:40:18 +00:00
clone git github.com/coreos/go-systemd master
2016-10-07 15:15:39 +00:00
clone git github.com/BurntSushi/toml v0.2.0
2016-09-20 08:16:59 +00:00
clone git github.com/Sirupsen/logrus v0.10.0
clone git github.com/containers/image f6f11ab5cf8b1e70ef4aa3f8b6fdb4b671d16abd
2016-09-20 14:15:22 +00:00
clone git github.com/opencontainers/image-spec master
2016-09-20 08:16:59 +00:00
clone git golang.org/x/net 991d3e32f76f19ee6d9caadb3a22eae8d23315f7 https://github.com/golang/net.git
clone git github.com/docker/docker master
clone git github.com/urfave/cli v1.18.1
clone git github.com/opencontainers/runtime-tools master
clone git github.com/tchap/go-patricia v2.2.6
clone git github.com/rajatchopra/ocicni master
clone git github.com/containernetworking/cni master
2016-11-17 01:20:37 +00:00
clone git k8s.io/kubernetes 43110dd64d058786e975ce30d4c12a4853d1778c https://github.com/kubernetes/kubernetes
2016-09-20 08:16:59 +00:00
clone git google.golang.org/grpc v1.0.1-GA https://github.com/grpc/grpc-go.git
clone git github.com/opencontainers/runtime-spec bb6925ea99f0e366a3f7d1c975f6577475ca25f0
2016-09-20 14:15:22 +00:00
clone git github.com/docker/distribution 77b9d2997abcded79a5314970fe69a44c93c25fb
clone git github.com/vbatts/tar-split v0.9.11
clone git github.com/docker/go-units f2145db703495b2e525c59662db69a7344b00bb8
clone git github.com/docker/go-connections 988efe982fdecb46f01d53465878ff1f2ff411ce
clone git github.com/docker/libtrust 9cbd2a1374f46905c68a4eb3694a130610adc62a
clone git github.com/ghodss/yaml 73d445a93680fa1a78ae23a5839bad48f32ba1ee
clone git gopkg.in/yaml.v2 d466437aa4adc35830964cffc5b5f262c63ddcb4
clone git github.com/golang/protobuf 3c84672111d91bb5ac31719e112f9f7126a0e26e
clone git github.com/golang/glog 44145f04b68cf362d9c4df2182967c2275eaefed
clone git github.com/gorilla/mux v1.1
clone git github.com/imdario/mergo 6633656539c1639d9d78127b7d47c622b5d7b6dc
2016-10-14 15:24:37 +00:00
clone git github.com/opencontainers/runc 3abefdff18bc201199c5dfd0e91e941cb4c61376
2016-09-20 14:15:22 +00:00
clone git github.com/syndtr/gocapability 2c00daeb6c3b45114c80ac44119e7b8801fdd852
clone git github.com/gogo/protobuf 43a2e0b1c32252bfbbdf81f7faa7a88fb3fa4028
clone git github.com/gorilla/context v1.1
2016-09-27 18:34:45 +00:00
clone git golang.org/x/sys 8f0908ab3b2457e2e15403d3697c9ef5cb4b57a9 https://github.com/golang/sys.git
2016-09-20 08:16:59 +00:00
clean