-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
cannot find module providing package k8s.io/api/admissionregistration/v1alpha1 when compiling operator-sdk #1637
Comments
@BIAOXYZ The SDK is still using Can you try setting |
@joelanford Thanks. I personally thought it had already been changed to be based on Go module. And after I turn off PS: Could we need some small changes in this page (developer_guide.md)? I mean, maybe explicitly indicate that it would be better to turn off |
Hi @joelanford, there is something new appears. In the same environment (two CentOS virtual machines with the same configuration), compiling operator-sdk succeeds in one machine (see my last post above) but fails in another. They are both in the same commit: d6903be. To reproduce:
I then remember I forgot to install bzr and hg. But after installing the two, compiling can still not succeed. |
@BIAOXYZ You seem to be on a branch |
@lilic
|
@BIAOXYZ I tried reproducing your issue with no success. As you say, the build works on one machine and fails on the other. Therefore it appears your issue is indeed environmental, so I'm going to close this issue. I would check your vendored dependency's versions, make sure the code is in fact the same between machines, and check your dep version. If you can reliably recreate the dependency issues, feel free to open another ticket (since the original issue does not match the one now being discussed). |
@estroz OK, I will try again and find the reason. |
Bug Report
What did you do?
Try to compile the latest version of operator-sdk.
What did you expect to see?
After successfully executing
make dep
, I expect thatmake install
step will also succeed.What did you see instead? Under which circumstances?
Environment
Additional context
This is the content of the go.mod file in the root path of the repo. I have try to mannually change the
k8s.io/api
part of it following the way of kubernetes/client-go#551. But it still does not work.The text was updated successfully, but these errors were encountered: