-
Notifications
You must be signed in to change notification settings - Fork 166
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
Errors while compiling #4
Comments
Just for reference, this is the generated Gopkg.toml
Maybe I'm getting the wrong client-go version? |
Yeah. Getting all the deps right for the Kubernetes Go client can be challenging. I'll try to short things and out push them up so you don't have to. |
Thanks |
@fiunchinho the following helped me: dep ensure -add k8s.io/apimachinery@1fd2e63a9a370677308a42f24fd40c86438afddf |
I have the same error and @smecsia cmd solve this. |
It now uses: * Kubernetes v1.7.5 * rkt v1.25.0 * go-systemd v15 I had to explicitly list some dependencies to pin them to a version * client-go v4.0.0 * cni v0.3.0 (what rkt uses) I also changed some depencency revisions to match what Kubernetes has. Finally, since I was getting compilation errors similar to the ones mentioned in kelseyhightower/kubernetes-initializer-tutorial#4, I set the version of k8s.io/apimachinery to like mentioned there.
Hi there,
When I try to set
Does anyone help me? |
I have the same thing, among other errors. And it's driving me INSANE.
WHAT? I can check it out just fine. |
I meet this just like @jorgesece , share my experience here in case anyone need.
Then, run This is just a workaround, but do resolve my problem. Hope to be helpful. |
It now uses: * Kubernetes v1.7.5 * rkt v1.25.0 * go-systemd v15 I had to explicitly list some dependencies to pin them to a version * client-go v4.0.0 * cni v0.3.0 (what rkt uses) I also changed some depencency revisions to match what Kubernetes has. Finally, since I was getting compilation errors similar to the ones mentioned in kelseyhightower/kubernetes-initializer-tutorial#4, I set the version of k8s.io/apimachinery to like mentioned there.
It now uses: * Kubernetes v1.7.5 * rkt v1.25.0 * go-systemd v15 I had to explicitly list some dependencies to pin them to a version * client-go v4.0.0 * cni v0.3.0 (what rkt uses) I also changed some depencency revisions to match what Kubernetes has. Finally, since I was getting compilation errors similar to the ones mentioned in kelseyhightower/kubernetes-initializer-tutorial#4, I set the version of k8s.io/apimachinery to like mentioned there.
The following combination of constraints were required for me to successfully build the project.
|
Hey Kelsey! Thanks for the example.
I'm pretty new to Golang, and I can't even compile this. I first fetch the dependencies, and then try to compile. Here are my steps
What am I missing? Thank you!
The text was updated successfully, but these errors were encountered: