-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Downgrade controller-runtime in go.mod by go get k8s.io/client-go@v12.0.0
#555
Comments
It shouldn't be referring to an invalid client-go version -- I believe it's just referring to a matching |
@DirectXMan12 Please check existing tags of |
right, that's a pseudo-version that got converted over from a real tag. If you say It does this so that it can continue to compare versions using a uniform algorithm. So, we set all kubernetes dependencies to Trying to set |
We'll update to |
(closing for now, but if there's something you don't understand, feel free to continue to ask questions. In the mean time, I'd highly recommend that you give the Go modules wiki page a read-through -- Go modules exhibit so behavior that looks strange on the surface) |
@DirectXMan12 Got it. Many thanks! |
@DirectXMan12 Appreciated! |
BTW,
https://github.com/kubernetes/client-go/blob/master/INSTALL.md#go-modules |
Yeah. We used to try to do that at various points in the past. It invariably caused headaches after a bit. It might be better with modules, but it's more reliably correct to use a uniform tag across all of them. |
Improve the commands descriptions
Hi! I am using
controller-runtime
but encountered the problem below.Problem
go get k8s.io/client-go@v12.0.0
downgrades controller-runtime fromv0.2.0-beta.4
tov0.2.0-alpha.0
go get sigs.k8s.io/controller-runtime@v0.2.0-beta.4
returns the error below and also downgradesclient-go
from v12.0.0 to v11.0.1Error
I think this is a bug and the solution below will resolve this bug.
I think that the current
go.mod
file in controller-runtime is referring to the invalid client-go version which isk8s.io/client-go v11.0.1-0.20190409021438-1a26190bd76a+incompatible
.So fixing the reference to
client-go
ingo.mod
will solve this problem./kind bug
The text was updated successfully, but these errors were encountered: