2014-01-21 20:21:56 -05:00
#!/usr/bin/env bash
2014-01-16 00:16:23 -05:00
set -e
2013-08-26 18:51:22 -04:00
2016-04-19 09:35:06 -04:00
# this script is used to update vendored dependencies
#
# Usage:
# vendor.sh revendor all dependencies
2016-09-21 06:36:52 -04:00
# vendor.sh github.com/docker/libkv revendor only the libkv dependency.
# vendor.sh github.com/docker/libkv v0.2.1 vendor only libkv at the specified tag/commit.
# vendor.sh git github.com/docker/libkv v0.2.1 is the same but specifies the VCS for cases where the VCS is something else than git
2016-04-19 09:35:06 -04:00
# 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
2014-01-16 00:16:23 -05:00
cd " $( dirname " $BASH_SOURCE " ) /.. "
2015-06-05 17:47:27 -04:00
source 'hack/.vendor-helpers.sh'
2013-12-19 12:01:55 -05:00
2016-04-19 09:35:06 -04:00
case $# in
0)
rm -rf vendor/
; ;
# If user passed arguments to the script
1)
2016-08-08 23:40:30 -04:00
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 "
2016-04-19 09:35:06 -04:00
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
2015-05-07 17:18:22 -04:00
# the following lines are in sorted order, FYI
2016-04-25 18:55:12 -04:00
clone git github.com/Azure/go-ansiterm 388960b655244e76e24c75f48631564eaefade62
2016-10-26 18:03:40 -04:00
clone git github.com/Microsoft/hcsshim v0.5.2
2016-10-10 18:08:17 -04:00
clone git github.com/Microsoft/go-winio v0.3.5
2016-09-28 10:27:36 -04:00
clone git github.com/Sirupsen/logrus f76d643702a30fbffecdfe50831e11881c96ceb3 https://github.com/aaronlehmann/logrus
2015-07-13 21:13:28 -04:00
clone git github.com/docker/libtrust 9cbd2a1374f46905c68a4eb3694a130610adc62a
2016-07-27 12:23:41 -04:00
clone git github.com/go-check/check 4ed411733c5785b40214c70bce814c3a3a689609 https://github.com/cpuguy83/check.git
2016-08-08 14:58:32 -04:00
clone git github.com/gorilla/context v1.1
clone git github.com/gorilla/mux v1.1
2015-05-15 03:22:16 -04:00
clone git github.com/kr/pty 5cf931ef8f
2015-10-04 18:17:44 -04:00
clone git github.com/mattn/go-shellwords v1.0.0
2015-09-04 16:15:09 -04:00
clone git github.com/mattn/go-sqlite3 v1.1.0
2016-08-17 14:02:32 -04:00
clone git github.com/tchap/go-patricia v2.2.6
2016-02-11 02:38:09 -05:00
clone git github.com/vdemeester/shakers 24d7f1d6a71aa5d9cbe7390e4afb66b7eef9e1b3
2016-04-07 14:00:54 -04:00
# forked golang.org/x/net package includes a patch for lazy loading trace templates
2016-06-07 17:30:43 -04:00
clone git golang.org/x/net 2beffdc2e92c8a3027590f898fe88f69af48a3f8 https://github.com/tonistiigi/net.git
2016-02-01 13:13:54 -05:00
clone git golang.org/x/sys eb2c74142fd19a79b3f237334c7384d5167b1b46 https://github.com/golang/sys.git
2016-10-20 23:05:11 -04:00
clone git github.com/docker/go-units 8a7beacffa3009a9ac66bad506b18ffdd110cf97
2016-10-28 12:35:30 -04:00
clone git github.com/docker/go-connections 1494b6df4050e60923d68cd8cc6a19e7af9f1c01
2016-07-28 00:17:00 -04:00
2016-09-17 10:25:05 -04:00
clone git github.com/RackSec/srslog 365bf33cd9acc21ae1c355209865f17228ca534e
2016-01-05 18:34:22 -05:00
clone git github.com/imdario/mergo 0.2.1
2014-02-13 17:11:39 -05:00
2015-05-06 20:09:12 -04:00
#get libnetwork packages
2016-10-26 16:37:46 -04:00
clone git github.com/docker/libnetwork f4338b6f1085ccfe5972e655cca8a1d15d73439d
2016-08-23 01:30:01 -04:00
clone git github.com/docker/go-events 18b43f1bc85d9cdd42c05a6cd2d444c7a200a894
2016-05-08 03:31:30 -04:00
clone git github.com/armon/go-radix e39d623f12e8e41c7b5529e9a9dd67a1e2261f80
2015-06-20 20:08:36 -04:00
clone git github.com/armon/go-metrics eb0af217e5e9747e41dd5303755356b62d28e3ec
clone git github.com/hashicorp/go-msgpack 71c2886f5a673a35f909803f38ece5810165097b
2016-05-08 03:31:30 -04:00
clone git github.com/hashicorp/memberlist 88ac4de0d1a0ca6def284b571342db3b777a4c37
clone git github.com/hashicorp/go-multierror fcdddc395df1ddf4247c69bd436e84cfa0733f7e
clone git github.com/hashicorp/serf 598c54895cc5a7b1a24a398d635e8c0ea0959870
2016-07-20 20:25:39 -04:00
clone git github.com/docker/libkv v0.2.1
2015-08-25 11:06:58 -04:00
clone git github.com/vishvananda/netns 604eaf189ee867d8c147fafc28def2394e878d25
2016-07-21 17:27:47 -04:00
clone git github.com/vishvananda/netlink e73bad418fd727ed3a02830b1af1ad0283a1de6c
2015-06-12 16:51:57 -04:00
clone git github.com/BurntSushi/toml f706d00e3de6abe700c994cdd545a1a4915af060
clone git github.com/samuel/go-zookeeper d0e0d8e11f318e000a8cc434616d69e329edc374
2015-10-01 23:04:31 -04:00
clone git github.com/deckarep/golang-set ef32fa3046d9f249d399f98ebaf9be944430fd1d
2016-08-23 01:30:01 -04:00
clone git github.com/coreos/etcd 3a49cbb769ebd8d1dd25abb1e83386e9883a5707
2016-06-02 21:22:09 -04:00
clone git github.com/ugorji/go f1f1a805ed361a0e078bb537e4ea78cd37dcf065
2015-06-12 16:51:57 -04:00
clone git github.com/hashicorp/consul v0.5.2
2016-09-15 13:53:48 -04:00
clone git github.com/boltdb/bolt fff57c100f4dea1905678da7e90d92429dff2904
2016-01-17 11:17:13 -05:00
clone git github.com/miekg/dns 75e6e86cc601825c5dbcd4e0c209eab180997cd7
2015-05-06 20:09:12 -04:00
2015-06-20 10:33:14 -04:00
# get graph and distribution packages
2016-10-26 04:55:50 -04:00
clone git github.com/docker/distribution fbb70dc3a14ca65cdac3aaf5e5122b03b42f6fbc
2016-09-27 12:57:56 -04:00
clone git github.com/vbatts/tar-split v0.10.1
2015-03-11 11:17:22 -04:00
2016-05-09 19:03:51 -04:00
# get go-zfs packages
clone git github.com/mistifyio/go-zfs 22c9b32c84eb0d0c6f4043b6e90fc94073de92fa
clone git github.com/pborman/uuid v1.0
2015-12-18 21:47:35 -05:00
# get desired notary commit, might also need to be updated in Dockerfile
2016-09-21 19:18:22 -04:00
clone git github.com/docker/notary v0.4.2
2015-12-18 21:47:35 -05:00
2016-10-20 14:26:04 -04:00
clone git google.golang.org/grpc v1.0.2 https://github.com/grpc/grpc-go.git
2016-02-25 19:30:36 -05:00
clone git github.com/miekg/pkcs11 df8ae6ca730422dba20c768ff38ef7d79077a59f
2016-01-26 17:21:07 -05:00
clone git github.com/docker/go v1.5.1-1-1-gbaf439e
2015-07-23 06:04:01 -04:00
clone git github.com/agl/ed25519 d2b94fd789ea21d12fac1a4443dd3a3f79cda72c
2016-09-29 14:02:38 -04:00
clone git github.com/opencontainers/runc 02f8fa7863dd3f82909a73e2061897828460d52f # libcontainer
2016-09-27 13:13:47 -04:00
clone git github.com/opencontainers/runtime-spec 1c7c27d043c2a5e513a44084d2b10d77d1402b8c # specs
2016-06-09 05:41:18 -04:00
clone git github.com/seccomp/libseccomp-golang 32f571b70023028bd57d9288c20efbcb237f3ce0
2015-10-06 11:21:43 -04:00
# libcontainer deps (see src/github.com/opencontainers/runc/Godeps/Godeps.json)
2015-11-03 05:03:35 -05:00
clone git github.com/coreos/go-systemd v4
2016-04-19 17:51:43 -04:00
clone git github.com/godbus/dbus v4.0.0
2015-11-25 18:44:44 -05:00
clone git github.com/syndtr/gocapability 2c00daeb6c3b45114c80ac44119e7b8801fdd852
2016-09-13 12:24:52 -04:00
clone git github.com/golang/protobuf 1f49d83d9aa00e6ce4fc8258c71cc7786aec968a
2015-11-25 18:44:44 -05:00
# gelf logging driver deps
2016-01-21 07:28:25 -05:00
clone git github.com/Graylog2/go-gelf aab2f594e4585d43468ac57287b0dece9d806883
2015-06-05 17:47:27 -04:00
2016-10-17 21:55:30 -04:00
clone git github.com/fluent/fluent-logger-golang v1.2.1
2015-06-20 00:07:50 -04:00
# fluent-logger-golang deps
clone git github.com/philhofer/fwd 899e4efba8eaa1fea74175308f3fae18ff3319fa
clone git github.com/tinylib/msgp 75ee40d2601edf122ef667e2a07d600d4c44490c
2016-02-23 21:05:07 -05:00
# fsnotify
2016-04-15 21:40:07 -04:00
clone git gopkg.in/fsnotify.v1 v1.2.11
2016-02-23 21:05:07 -05:00
2015-08-03 21:45:36 -04:00
# awslogs deps
2016-10-29 16:25:05 -04:00
clone git github.com/aws/aws-sdk-go v1.4.22
2016-05-27 12:24:48 -04:00
clone git github.com/go-ini/ini 060d7da055ba6ec5ea7a31f116332fe5efa04ce0
clone git github.com/jmespath/go-jmespath 0b12d6b521d83fc7f755e7cfc1b1fbdd35a01a74
2015-08-03 21:45:36 -04:00
2016-06-01 14:54:15 -04:00
# logentries
2016-10-18 15:06:55 -04:00
clone git github.com/bsphere/le_go d3308aafe090956bc89a65f0769f58251a1b4f03
2016-06-01 14:54:15 -04:00
2015-12-18 12:43:27 -05:00
# gcplogs deps
clone git golang.org/x/oauth2 2baa8a1b9338cf13d9eeb27696d761155fa480be https://github.com/golang/oauth2.git
clone git google.golang.org/api dc6d2353af16e2a2b0ff6986af051d473a4ed468 https://code.googlesource.com/google-api-go-client
clone git google.golang.org/cloud dae7e3d993bc3812a2185af60552bb6b847e52a0 https://code.googlesource.com/gocloud
2016-06-04 13:06:07 -04:00
# native credentials
2016-09-06 17:10:04 -04:00
clone git github.com/docker/docker-credential-helpers f72c04f1d8e71959a6d103f808c50ccbad79b9fd
2016-06-04 13:06:07 -04:00
2016-03-18 14:43:13 -04:00
# containerd
2016-10-17 13:49:36 -04:00
clone git github.com/docker/containerd 52ef1ceb4b660c42cf4ea9013180a5663968d4c7
2016-10-14 19:31:27 -04:00
clone git github.com/tonistiigi/fifo 8c56881ce5e63e19e2dfc495c8af0fb90916467d
2016-04-19 11:49:57 -04:00
2016-06-07 17:28:28 -04:00
# cluster
2016-10-17 17:17:53 -04:00
clone git github.com/docker/swarmkit 72981f443024da2c57d54b915eae0477be6dada5
2016-06-07 17:28:28 -04:00
clone git github.com/golang/mock bd3c8e81be01eef76d4b503f5e687d2d1354d2d9
2016-09-13 12:24:52 -04:00
clone git github.com/gogo/protobuf v0.3
2016-08-23 01:30:01 -04:00
clone git github.com/cloudflare/cfssl 7fb22c8cba7ecaf98e4082d22d65800cf45e042a
2016-10-25 16:14:57 -04:00
clone git github.com/google/certificate-transparency d90e65c3a07988180c5b1ece71791c0b6506826e
2016-06-07 17:28:28 -04:00
clone git golang.org/x/crypto 3fbbcd23f1cb824e69491a5930cfeff09b12f4d2 https://github.com/golang/crypto.git
2016-08-11 17:34:59 -04:00
clone git golang.org/x/time a4bde12657593d5e90d0533a3e4fd95e635124cb https://github.com/golang/time.git
2016-06-07 17:28:28 -04:00
clone git github.com/mreiferson/go-httpclient 63fe23f7434723dc904c901043af07931f293c47
clone git github.com/hashicorp/go-memdb 98f52f52d7a476958fa9da671354d270c50661a7
clone git github.com/hashicorp/go-immutable-radix 8e8ed81f8f0bf1bdd829593fdd5c29922c1ea990
clone git github.com/hashicorp/golang-lru a0d98a5f288019575c6d1f4bb1573fef2d1fcdc4
2016-08-11 19:41:44 -04:00
clone git github.com/coreos/pkg fa29b1d70f0beaddd4c7021607cc3c3be8ce94b8
2016-06-07 17:28:28 -04:00
clone git github.com/pivotal-golang/clock 3fd3c1944c59d9742e1cd333672181cd1a6f9fa0
2016-08-18 01:43:33 -04:00
clone git github.com/prometheus/client_golang 52437c81da6b127a9925d17eb3a382a2e5fd395e
clone git github.com/beorn7/perks 4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9
2016-06-07 17:28:28 -04:00
clone git github.com/prometheus/client_model fa8ad6fec33561be4280a8f0514318c79d7f6cb6
2016-08-18 01:43:33 -04:00
clone git github.com/prometheus/common ebdfc6da46522d58825777cf1f90490a5b1ef1d8
clone git github.com/prometheus/procfs abf152e5f3e97f2fafac028d2cc06c1feb87ffa5
2016-06-07 17:28:28 -04:00
clone hg bitbucket.org/ww/goautoneg 75cd24fc2f2c2a2088577d12123ddee5f54e0675
clone git github.com/matttproud/golang_protobuf_extensions fc2b8d3a73c4867e51861bbdd5ae3c1f0869dd6a
2016-06-16 01:41:30 -04:00
clone git github.com/pkg/errors 01fa4104b9c248c8945d14d9f128454d5b28d595
2016-06-07 17:28:28 -04:00
2016-04-19 11:49:57 -04:00
# cli
2016-06-23 12:03:42 -04:00
clone git github.com/spf13/cobra v1.4.1 https://github.com/dnephin/cobra.git
2016-10-18 15:06:55 -04:00
clone git github.com/spf13/pflag dabebe21bf790f782ea4c7bbd2efc430de182afd
2016-04-19 11:49:57 -04:00
clone git github.com/inconshreveable/mousetrap 76626ae9c91c4f2a10f34cad8ce83ea42c93bb75
2016-06-24 15:03:26 -04:00
clone git github.com/flynn-archive/go-shlex 3f9db97f856818214da2e1057f8ad84803971cff
2016-04-19 11:49:57 -04:00
2016-07-20 19:11:28 -04:00
# metrics
clone git github.com/docker/go-metrics 86138d05f285fd9737a99bee2d9be30866b59d72
2015-06-05 17:47:27 -04:00
clean