Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package "k8s.io/client-go/pkg/api" no longer exists #10

Open
nlewo opened this issue Jan 2, 2018 · 2 comments
Open

Package "k8s.io/client-go/pkg/api" no longer exists #10

nlewo opened this issue Jan 2, 2018 · 2 comments

Comments

@nlewo
Copy link

nlewo commented Jan 2, 2018

It fails to build:

go get
package k8s.io/client-go/pkg/api: cannot find package "k8s.io/client-go/pkg/api" in any of:
	/nix/store/v24kf2k22v4hjlw1i7gh1kdchq8q7bql-go-1.7.4/share/go/src/k8s.io/client-go/pkg/api (from $GOROOT)
	/home/lewo/.gocode/src/k8s.io/client-go/pkg/api (from $GOPATH)
package k8s.io/client-go/pkg/api/v1: cannot find package "k8s.io/client-go/pkg/api/v1" in any of:
	/nix/store/v24kf2k22v4hjlw1i7gh1kdchq8q7bql-go-1.7.4/share/go/src/k8s.io/client-go/pkg/api/v1 (from $GOROOT)
	/home/lewo/.gocode/src/k8s.io/client-go/pkg/api/v1 (from $GOPATH)

Kubernetes has split its code across many repositories. It seems you should then use this repository https://github.com/kubernetes/api instead.

@fcantournet
Copy link

This repository vendor all its dependencies and all the vendor-ed sources are committed in /vendor
Go get will not try to download any dependencies.

You can try this by doing : docker run -it golang:1.9
And running go get github.com/cloudwatt/kube2consul and you'll see that github.com/cloudwatt/kube2consul is the only repository that is clone.

What command did you run exactly ?

@nlewo
Copy link
Author

nlewo commented Jan 15, 2018

I was trying to fetch dependencies directly from their repositories because this is what the Nix Go helper likes to do. However, this can also be done by using vendorized dependencies (but it's less clean and more verbose).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants