Client-go: govendor get k8s.io/client-go failed

Created on 19 Dec 2016  路  6Comments  路  Source: kubernetes/client-go

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

Most helpful comment

@inetkiller You should use ... like this:

$ govendor fetch k8s.io/client-go/...

All 6 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

narasago picture narasago  路  3Comments

antoineco picture antoineco  路  6Comments

CSharpRU picture CSharpRU  路  7Comments

mheese picture mheese  路  5Comments

protheusfr picture protheusfr  路  3Comments