-
Notifications
You must be signed in to change notification settings - Fork 39.4k
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
Unable to use go modules in device plugins #82437
Comments
@kubernetes/sig-node-bugs |
@cbf123: Reiterating the mentions to trigger a notification: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/area code-organization |
Looks like the repo in question just uses code under |
/assign @RenaudWasTaken |
note from @RenaudWasTaken in email:
|
/close |
@andrewsykim: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What happened:
As described at k8snetworkplumbingwg/sriov-network-device-plugin#160 (comment) when I ran "go get k8s.io/kubernetes" it gave me the following error:
...initial bit snipped...
go: k8s.io/cluster-bootstrap@v0.0.0: unknown revision v0.0.0
go: k8s.io/kube-proxy@v0.0.0: unknown revision v0.0.0
go: k8s.io/code-generator@v0.0.0: unknown revision v0.0.0
go: k8s.io/metrics@v0.0.0: unknown revision v0.0.0
go: k8s.io/kubelet@v0.0.0: unknown revision v0.0.0
go: k8s.io/legacy-cloud-providers@v0.0.0: unknown revision v0.0.0
go: error loading module requirements
What you expected to happen:
That it would update the kubernetes dependency appropriately.
How to reproduce it (as minimally and precisely as possible):
git clone git@github.com:intel/sriov-network-device-plugin.git
cd sriov-network-device-plugin
go get k8s.io/kubernetes
Anything else we need to know?:
According to golang/go#32776 it might be a problem with specifying k8s.io/kubernetes as a dependency. At that link it says " k8s.io/kubernetes is not primarily intended to be consumed as a module. Only the published subcomponents are (and go get works properly with those)." If that's the case, then the deviceplugin API needs to be published as a subcomponent because clearly all device plugins need to be able to import the deviceplugin API.
The text was updated successfully, but these errors were encountered: