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
# 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
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)
eval " $( grep -E " ^clone [^ ]+ $1 " " $0 " ) "
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-05-31 15:51:29 -04:00
clone git github.com/Microsoft/hcsshim v0.3.1
2016-05-13 14:50:19 -04:00
clone git github.com/Microsoft/go-winio v0.3.4
2016-05-08 03:31:30 -04:00
clone git github.com/Sirupsen/logrus v0.10.0 # logrus is a common dependency among multiple deps
2015-07-13 21:13:28 -04:00
clone git github.com/docker/libtrust 9cbd2a1374f46905c68a4eb3694a130610adc62a
2016-05-11 21:19:23 -04:00
clone git github.com/go-check/check 03a4d9dcf2f92eae8e90ed42aa2656f63fdd0b14 https://github.com/cpuguy83/check.git
2014-06-28 04:38:29 -04:00
clone git github.com/gorilla/context 14f550f51a
2015-03-17 14:03:56 -04:00
clone git github.com/gorilla/mux e444e69cbd
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
2015-05-03 01:25:57 -04:00
clone git github.com/tchap/go-patricia v2.1.0
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
clone git golang.org/x/net 78cb2c067747f08b343f20614155233ab4ea2ad3 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
2015-12-21 15:18:24 -05:00
clone git github.com/docker/go-units 651fc226e7441360384da338d0fd37f2440ffbe3
2016-02-16 13:05:01 -05:00
clone git github.com/docker/go-connections v0.2.0
2016-06-04 08:16:36 -04:00
clone git github.com/docker/engine-api 772250a752e34cacaeef7c92b8e0ddf43450b629
2016-02-03 15:40:19 -05:00
clone git github.com/RackSec/srslog 259aed10dfa74ea2961eddd1d9847619f6e98837
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-05-08 03:32:51 -04:00
clone git github.com/docker/libnetwork b66c0385f30c6aa27b2957ed1072682c19a0b0b4
2016-05-08 03:31:30 -04:00
clone git github.com/docker/go-events 2e7d352816128aa84f4d29b2a21d400133701a0d
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
clone git github.com/docker/libkv 7283ef27ed32fe267388510a91709b307bb9942c
2015-08-25 11:06:58 -04:00
clone git github.com/vishvananda/netns 604eaf189ee867d8c147fafc28def2394e878d25
2016-03-08 21:47:02 -05:00
clone git github.com/vishvananda/netlink 631962935bff4f3d20ff32a72e8944f6d2836a26
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-06-02 21:22:09 -04:00
clone git github.com/coreos/etcd v2.3.2
2015-10-13 14:33:47 -04:00
fix_rewritten_imports github.com/coreos/etcd
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-05-16 09:47:02 -04:00
clone git github.com/boltdb/bolt v1.2.1
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-05-20 16:23:01 -04:00
clone git github.com/docker/distribution 5bbf65499960b184fe8e0f045397375e1a6722b8
2015-12-02 15:34:12 -05:00
clone git github.com/vbatts/tar-split v0.9.11
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-05-11 18:25:05 -04:00
clone git github.com/docker/notary v0.3.0
2015-12-18 21:47:35 -05:00
2016-03-18 14:37:37 -04:00
clone git google.golang.org/grpc a22b6611561e9f0a3e0919690dd2caf48f14c517 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-05-04 16:09:53 -04:00
clone git github.com/opencontainers/runc d49ece5a83da3dcb820121d6850e2b61bd0a5fbe # libcontainer
2016-04-25 15:55:28 -04:00
clone git github.com/opencontainers/specs f955d90e70a98ddfb886bd930ffd076da9b67998 # specs
2016-05-24 16:39:52 -04:00
clone git github.com/seccomp/libseccomp-golang 60c9953736798c4a04e90d0f3da2f933d44fd4c4
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-05-09 18:21:41 -04:00
clone git github.com/golang/protobuf 8d92cf5fc15a4382f8964b08e1f42a75c0591aa3
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-01-19 03:07:13 -05:00
clone git github.com/fluent/fluent-logger-golang v1.1.0
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-05-27 12:24:48 -04:00
clone git github.com/aws/aws-sdk-go v1.1.30
clone git github.com/go-ini/ini 060d7da055ba6ec5ea7a31f116332fe5efa04ce0
clone git github.com/jmespath/go-jmespath 0b12d6b521d83fc7f755e7cfc1b1fbdd35a01a74
2015-08-03 21:45:36 -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
clone git github.com/docker/docker-credential-helpers v0.3.0
2016-03-18 14:43:13 -04:00
# containerd
2016-05-04 16:09:53 -04:00
clone git github.com/docker/containerd 57b7c3da915ebe943bd304c00890959b191e5264
2016-04-19 11:49:57 -04:00
# cli
2016-06-06 07:58:18 -04:00
clone git github.com/spf13/cobra 75205f23b3ea70dc7ae5e900d074e010c23c37e9 https://github.com/dnephin/cobra.git
2016-04-19 11:49:57 -04:00
clone git github.com/spf13/pflag cb88ea77998c3f024757528e3305022ab50b43be
clone git github.com/inconshreveable/mousetrap 76626ae9c91c4f2a10f34cad8ce83ea42c93bb75
2015-06-05 17:47:27 -04:00
clean