-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
cmd/go: unexpected build failure with modules #29887
Comments
maybe the problem is that get the incorrect version of [email protected] code from gopath/pkg/mod/k8s.io/[email protected] i check the latest version of kubernetes at github: is it? is my go mod get ther wrong [email protected]? |
/cc @bcmills |
The problem here is some sort of version skew between the various I'm not sure exactly which module is wrong, but it doesn't really matter: you can resolve it by running
|
thanks @bcmills , you save my day, in my case, also need to upgrade kubernetes however, i still can't get [email protected] or 1.13.2 or else |
I have no idea. Presumably there is some 1.13 version at which all of the |
k8s has a relatively complex and non-standard way to manage dependencies including custom wrapper scripts on top of If you want to get a consistent set of v1.13.2 dependecies for k8s, one approach you could try is cloning You might be able to have
The following FAQ covers the technique in a bit more detail: Here is a concrete example in #28489 (comment) of following that technique (for docker, in that example). |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
copy a project to a folder outside of my GOPATH
What did you expect to see?
build successful
What did you see instead?
build fail with output:
content in go.mod:
try to click the link from console error
I try to trace the dependence of [email protected]+incompatible/pkg/util/feature/feature_gate.go and found there's function Add()..
is the dependence([email protected]) can not find its correct dependence(k8s.io/apiserver/pkg/util/feature)?
what 's the main reason it can not build, and how to solve it?
thanks
The text was updated successfully, but these errors were encountered: