-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Running deployment CRUD example example fails with incompatibility errors #752
Comments
Versions of client-go prior to 1.15 did not include go.mod files, so go does not understand what versions of transitive dependencies to use. That makes it fetch the latest version of all transitive dependencies, which are not compatible. You have a couple options:
|
@liggitt if you look at the output that i posted, I did exactly what you are suggesting in option 2
and I have attached the output of that too. This does not work as shown in the pasted output. Am I missing something here? |
hmm.... starting in a directory containing only the main.go file, I get this (and the build succeeds): $ go mod init test_k8
go: creating new go.mod: module test_k8
$ go get k8s.io/[email protected]
go: finding k8s.io/client-go kubernetes-1.14.8
$ go get k8s.io/[email protected]
go: finding k8s.io/api kubernetes-1.14.8
go build k8s.io/api: no non-test Go files in /Users/liggitt/go/pkg/mod/k8s.io/[email protected]
$ go get k8s.io/[email protected]
go: finding k8s.io/apimachinery kubernetes-1.14.8
$ go build main.go
go: finding github.com/gogo/protobuf/proto latest
go: finding github.com/googleapis/gnostic/OpenAPIv2 latest
go: finding github.com/golang/protobuf/proto latest
go: finding github.com/gogo/protobuf/sortkeys latest
go: finding k8s.io/utils/buffer latest
go: finding k8s.io/utils/integer latest
go: finding github.com/davecgh/go-spew/spew latest
go: finding k8s.io/utils/trace latest
go: finding golang.org/x/crypto/ssh/terminal latest
go: finding k8s.io/utils latest
go: finding golang.org/x/time/rate latest
go: finding golang.org/x/net/http2 latest
go: finding golang.org/x/crypto/ssh latest
go: finding golang.org/x/oauth2 latest
go: finding golang.org/x/crypto latest
go: finding golang.org/x/time latest
go: finding golang.org/x/net latest
go: downloading golang.org/x/sys v0.0.0-20190412213103-97732733099d
go: downloading github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421
go: extracting github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421
go: extracting golang.org/x/sys v0.0.0-20190412213103-97732733099d
go: finding github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421
go: finding golang.org/x/sys v0.0.0-20190412213103-97732733099d what version of go are you using? |
I am using go 1.12.13
Doing a very fresh start but taking it out into another directory The output that you have attached is significantly different from mine. Here is my full output now
|
hmm... starting from scratch on the same version
and the build succeeds |
Well.. What other options do we have then? |
what is your $GOPROXY setting? |
Its empty
Can you paste the |
|
Mine is exactly the same also.
|
Uh! I took the file from the wrong branch. I compiles with the one that referenced |
Trying to run the deployment CRUD example present here runs into library incompatibility issues.
I am using version 1.14.8 of K8 and running on MacOS 10.15.1
Following errors occur
A similar issue was reported here #584 that suggests to use the instructions about modules here : https://github.com/kubernetes/client-go/blob/master/INSTALL.md#go-modules. But these suggestions do not seem to work.
Even after doing this and removing all the libs/pkgs from previous install, the issue does not go away. The steps that I performed
Note the output of the command
This is still installing
apimachinery v0.17.3
for some reason. How to solve this problem. Any help would be appreciatedThe text was updated successfully, but these errors were encountered: