when exec
govendor get k8s.io/client-go
I get following error:
can't load package: package k8s.io/client-go: no buildable Go source files in ~/go/src/k8s.io/client-go
Try govendor get k8s.io/client-go/kubernetes
@caesarxuchao this command download client-go to $GOPATH dir.
how to install client-go to my project's vendor dir?
thx
@inetkiller either follow up govendor get by govendor add to copy the dependency from your GOPATH into the vendor folder; or bypass GOPATH and use govendor fetch in the first place, which downloads dependencies directly into your vendor folder.
@inetkiller you might also want to prefer vendoring a stable branch or version tag as opposed to unstable master. Append @=<branch or tag specifier> to the govendor command to achieve that.
Refer to the govendor README file for details.
@inetkiller You should use ... like this:
$ govendor fetch k8s.io/client-go/...
I think this issue is resolved. If not, please reopen it.
Most helpful comment
@inetkiller You should use
...like this: