Skip to content

Instantly share code, notes, and snippets.

@jimmykuo
Last active February 22, 2018 16:48
Show Gist options
  • Save jimmykuo/1265898e457ba8bef87d48dc88766a2e to your computer and use it in GitHub Desktop.
Save jimmykuo/1265898e457ba8bef87d48dc88766a2e to your computer and use it in GitHub Desktop.
govendor fetch and get
$ rm -Rf $GOPATH/src/gopkg.in/redis.v6
$ ls vendor/gopkg.in/redis.v6
ls: vendor/gopkg.in/redis.v6: No such file or directory
$ govendor get gopkg.in/redis.v6
../../../gopkg.in/redis.v6/cluster.go:12:2: use of internal package not allowed
../../../gopkg.in/redis.v6/ring.go:13:2: use of internal package not allowed
../../../gopkg.in/redis.v6/cluster.go:13:2: use of internal package not allowed
../../../gopkg.in/redis.v6/cluster.go:14:2: use of internal package not allowed
../../../gopkg.in/redis.v6/cluster.go:15:2: use of internal package not allowed
../../../gopkg.in/redis.v6/cluster.go:16:2: use of internal package not allowed
../../../gopkg.in/redis.v6/command.go:13:2: use of internal package not allowed
$ govendor fetch gopkg.in/redis.v6
$ ls vendor/gopkg.in
Shopify bluesuncorp bsm godo.v2 inf.v0 redis.v3 redis.v5 redis.v6 yaml.v2
$ govendor get gopkg.in/mgo.v2/bson
$ ls vendor/gopkg.in
Shopify bluesuncorp bsm godo.v2 inf.v0 redis.v3 redis.v5 redis.v6 yaml.v2
$ govendor fetch gopkg.in/mgo.v2/bson
$ ls vendor/gopkg.in
Shopify bluesuncorp bsm godo.v2 inf.v0 mgo.v2 redis.v3 redis.v5 redis.v6 yaml.v2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment