github.com/portworx/docker@v1.12.1/hack/vendor.sh (about)

     1  #!/usr/bin/env bash
     2  set -e
     3  
     4  # this script is used to update vendored dependencies
     5  #
     6  # Usage:
     7  # vendor.sh revendor all dependencies
     8  # vendor.sh github.com/docker/engine-api revendor only the engine-api dependency.
     9  # vendor.sh github.com/docker/engine-api v0.3.3 vendor only engine-api at the specified tag/commit.
    10  # 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
    11  # 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
    12  
    13  cd "$(dirname "$BASH_SOURCE")/.."
    14  source 'hack/.vendor-helpers.sh'
    15  
    16  case $# in
    17  0)
    18  	rm -rf vendor/
    19  	;;
    20  # If user passed arguments to the script
    21  1)
    22  	eval "$(grep -E "^clone [^ ]+ $1" "$0")"
    23  	clean
    24  	exit 0
    25  	;;
    26  2)
    27  	rm -rf "vendor/src/$1"
    28  	clone git "$1" "$2"
    29  	clean
    30  	exit 0
    31  	;;
    32  [34])
    33  	rm -rf "vendor/src/$2"
    34  	clone "$@"
    35  	clean
    36  	exit 0
    37  	;;
    38  *)
    39  	>&2 echo "error: unexpected parameters"
    40  	exit 1
    41  	;;
    42  esac
    43  
    44  # the following lines are in sorted order, FYI
    45  clone git github.com/Azure/go-ansiterm 388960b655244e76e24c75f48631564eaefade62
    46  clone git github.com/Microsoft/hcsshim v0.3.4
    47  clone git github.com/Microsoft/go-winio v0.3.4
    48  clone git github.com/Sirupsen/logrus v0.10.0 # logrus is a common dependency among multiple deps
    49  clone git github.com/docker/libtrust 9cbd2a1374f46905c68a4eb3694a130610adc62a
    50  clone git github.com/go-check/check 03a4d9dcf2f92eae8e90ed42aa2656f63fdd0b14 https://github.com/cpuguy83/check.git
    51  clone git github.com/gorilla/context 14f550f51a
    52  clone git github.com/gorilla/mux e444e69cbd
    53  clone git github.com/kr/pty 5cf931ef8f
    54  clone git github.com/mattn/go-shellwords v1.0.0
    55  clone git github.com/mattn/go-sqlite3 v1.1.0
    56  clone git github.com/tchap/go-patricia v2.1.0
    57  clone git github.com/vdemeester/shakers 24d7f1d6a71aa5d9cbe7390e4afb66b7eef9e1b3
    58  # forked golang.org/x/net package includes a patch for lazy loading trace templates
    59  clone git golang.org/x/net 2beffdc2e92c8a3027590f898fe88f69af48a3f8 https://github.com/tonistiigi/net.git
    60  clone git golang.org/x/sys eb2c74142fd19a79b3f237334c7384d5167b1b46 https://github.com/golang/sys.git
    61  clone git github.com/docker/go-units 651fc226e7441360384da338d0fd37f2440ffbe3
    62  clone git github.com/docker/go-connections fa2850ff103453a9ad190da0df0af134f0314b3d
    63  clone git github.com/docker/engine-api 4eca04ae18f4f93f40196a17b9aa6e11262a7269
    64  clone git github.com/RackSec/srslog 259aed10dfa74ea2961eddd1d9847619f6e98837
    65  clone git github.com/imdario/mergo 0.2.1
    66  
    67  #get libnetwork packages
    68  clone git github.com/docker/libnetwork 82fb373e3eaa4e9bbb5b5ac148b0a3a71f80fca6
    69  clone git github.com/docker/go-events afb2b9f2c23f33ada1a22b03651775fdc65a5089
    70  clone git github.com/armon/go-radix e39d623f12e8e41c7b5529e9a9dd67a1e2261f80
    71  clone git github.com/armon/go-metrics eb0af217e5e9747e41dd5303755356b62d28e3ec
    72  clone git github.com/hashicorp/go-msgpack 71c2886f5a673a35f909803f38ece5810165097b
    73  clone git github.com/hashicorp/memberlist 88ac4de0d1a0ca6def284b571342db3b777a4c37
    74  clone git github.com/hashicorp/go-multierror fcdddc395df1ddf4247c69bd436e84cfa0733f7e
    75  clone git github.com/hashicorp/serf 598c54895cc5a7b1a24a398d635e8c0ea0959870
    76  clone git github.com/docker/libkv v0.2.1
    77  clone git github.com/vishvananda/netns 604eaf189ee867d8c147fafc28def2394e878d25
    78  clone git github.com/vishvananda/netlink e73bad418fd727ed3a02830b1af1ad0283a1de6c
    79  clone git github.com/BurntSushi/toml f706d00e3de6abe700c994cdd545a1a4915af060
    80  clone git github.com/samuel/go-zookeeper d0e0d8e11f318e000a8cc434616d69e329edc374
    81  clone git github.com/deckarep/golang-set ef32fa3046d9f249d399f98ebaf9be944430fd1d
    82  clone git github.com/coreos/etcd v2.3.2
    83  fix_rewritten_imports github.com/coreos/etcd
    84  clone git github.com/ugorji/go f1f1a805ed361a0e078bb537e4ea78cd37dcf065
    85  clone git github.com/hashicorp/consul v0.5.2
    86  clone git github.com/boltdb/bolt v1.2.1
    87  clone git github.com/miekg/dns 75e6e86cc601825c5dbcd4e0c209eab180997cd7
    88  
    89  # get graph and distribution packages
    90  clone git github.com/docker/distribution 07f32ac1831ed0fc71960b7da5d6bb83cb6881b5
    91  clone git github.com/vbatts/tar-split v0.9.11
    92  
    93  # get go-zfs packages
    94  clone git github.com/mistifyio/go-zfs 22c9b32c84eb0d0c6f4043b6e90fc94073de92fa
    95  clone git github.com/pborman/uuid v1.0
    96  
    97  # get desired notary commit, might also need to be updated in Dockerfile
    98  clone git github.com/docker/notary v0.3.0
    99  
   100  clone git google.golang.org/grpc ab0be5212fb225475f2087566eded7da5d727960 https://github.com/grpc/grpc-go.git
   101  clone git github.com/miekg/pkcs11 df8ae6ca730422dba20c768ff38ef7d79077a59f
   102  clone git github.com/docker/go v1.5.1-1-1-gbaf439e
   103  clone git github.com/agl/ed25519 d2b94fd789ea21d12fac1a4443dd3a3f79cda72c
   104  
   105  clone git github.com/opencontainers/runc cc29e3dded8e27ba8f65738f40d251c885030a28 # libcontainer
   106  clone git github.com/opencontainers/specs v1.0.0-rc1 # specs
   107  clone git github.com/seccomp/libseccomp-golang 32f571b70023028bd57d9288c20efbcb237f3ce0
   108  # libcontainer deps (see src/github.com/opencontainers/runc/Godeps/Godeps.json)
   109  clone git github.com/coreos/go-systemd v4
   110  clone git github.com/godbus/dbus v4.0.0
   111  clone git github.com/syndtr/gocapability 2c00daeb6c3b45114c80ac44119e7b8801fdd852
   112  clone git github.com/golang/protobuf 3c84672111d91bb5ac31719e112f9f7126a0e26e
   113  
   114  # gelf logging driver deps
   115  clone git github.com/Graylog2/go-gelf aab2f594e4585d43468ac57287b0dece9d806883
   116  
   117  clone git github.com/fluent/fluent-logger-golang v1.1.0
   118  # fluent-logger-golang deps
   119  clone git github.com/philhofer/fwd 899e4efba8eaa1fea74175308f3fae18ff3319fa
   120  clone git github.com/tinylib/msgp 75ee40d2601edf122ef667e2a07d600d4c44490c
   121  
   122  # fsnotify
   123  clone git gopkg.in/fsnotify.v1 v1.2.11
   124  
   125  # awslogs deps
   126  clone git github.com/aws/aws-sdk-go v1.1.30
   127  clone git github.com/go-ini/ini 060d7da055ba6ec5ea7a31f116332fe5efa04ce0
   128  clone git github.com/jmespath/go-jmespath 0b12d6b521d83fc7f755e7cfc1b1fbdd35a01a74
   129  
   130  # gcplogs deps
   131  clone git golang.org/x/oauth2 2baa8a1b9338cf13d9eeb27696d761155fa480be https://github.com/golang/oauth2.git
   132  clone git google.golang.org/api dc6d2353af16e2a2b0ff6986af051d473a4ed468 https://code.googlesource.com/google-api-go-client
   133  clone git google.golang.org/cloud dae7e3d993bc3812a2185af60552bb6b847e52a0 https://code.googlesource.com/gocloud
   134  
   135  # native credentials
   136  clone git github.com/docker/docker-credential-helpers v0.3.0
   137  
   138  # containerd
   139  clone git github.com/docker/containerd 0ac3cd1be170d180b2baed755e8f0da547ceb267
   140  
   141  # cluster
   142  clone git github.com/docker/swarmkit bfbec9f2b6a487100a80027f6ee16cc0c646a8f5
   143  clone git github.com/golang/mock bd3c8e81be01eef76d4b503f5e687d2d1354d2d9
   144  clone git github.com/gogo/protobuf 43a2e0b1c32252bfbbdf81f7faa7a88fb3fa4028
   145  clone git github.com/cloudflare/cfssl b895b0549c0ff676f92cf09ba971ae02bb41367b
   146  clone git github.com/google/certificate-transparency 025a5cab06f6a819c455d9fdc9e2a1b6d0982284
   147  clone git golang.org/x/crypto 3fbbcd23f1cb824e69491a5930cfeff09b12f4d2 https://github.com/golang/crypto.git
   148  clone git github.com/mreiferson/go-httpclient 63fe23f7434723dc904c901043af07931f293c47
   149  clone git github.com/hashicorp/go-memdb 98f52f52d7a476958fa9da671354d270c50661a7
   150  clone git github.com/hashicorp/go-immutable-radix 8e8ed81f8f0bf1bdd829593fdd5c29922c1ea990
   151  clone git github.com/hashicorp/golang-lru a0d98a5f288019575c6d1f4bb1573fef2d1fcdc4
   152  clone git github.com/coreos/pkg 2c77715c4df99b5420ffcae14ead08f52104065d
   153  clone git github.com/pivotal-golang/clock 3fd3c1944c59d9742e1cd333672181cd1a6f9fa0
   154  clone git github.com/prometheus/client_golang e51041b3fa41cece0dca035740ba6411905be473
   155  clone git github.com/beorn7/perks b965b613227fddccbfffe13eae360ed3fa822f8d
   156  clone git github.com/prometheus/client_model fa8ad6fec33561be4280a8f0514318c79d7f6cb6
   157  clone git github.com/prometheus/common ffe929a3f4c4faeaa10f2b9535c2b1be3ad15650
   158  clone git github.com/prometheus/procfs 454a56f35412459b5e684fd5ec0f9211b94f002a
   159  clone hg bitbucket.org/ww/goautoneg 75cd24fc2f2c2a2088577d12123ddee5f54e0675
   160  clone git github.com/matttproud/golang_protobuf_extensions fc2b8d3a73c4867e51861bbdd5ae3c1f0869dd6a
   161  clone git github.com/pkg/errors 01fa4104b9c248c8945d14d9f128454d5b28d595
   162  
   163  # cli
   164  clone git github.com/spf13/cobra 75205f23b3ea70dc7ae5e900d074e010c23c37e9 https://github.com/dnephin/cobra.git
   165  clone git github.com/spf13/pflag cb88ea77998c3f024757528e3305022ab50b43be
   166  clone git github.com/inconshreveable/mousetrap 76626ae9c91c4f2a10f34cad8ce83ea42c93bb75
   167  clone git github.com/flynn-archive/go-shlex 3f9db97f856818214da2e1057f8ad84803971cff
   168  
   169  clean