-
Notifications
You must be signed in to change notification settings - Fork 1.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
Build operator-sdk failed #827
Comments
Thanks for your report and the detailed context! I tried to recreate this locally but with no success. Also note: if dep fails it sometimes leaves behind a temp vendor directory, think it's called |
I am able to build operator-sdk (just tried on recent master) but the operator build is failing for me.
leads to:
My go version:
Any idea, please? |
@mareklibra Thanks for your report, I could reproduce yours, looking into it right now. Although your issue differs from @jianzhangbjz. |
@mareklibra Can you try the following: In the example-inc Gopkg.toml file can you replace the "sigs.k8s.io/controller-runtime" constraint with the following:
and try building again. Thank you so much! |
@lilic , thank you very much for your quick response. It helped, the build is working! |
@lilic Thanks for your quick reply. I didn't update the mac:operator-sdk jianzhang$ make install
mac:operator-sdk jianzhang$ operator-sdk --version
operator-sdk version v0.2.0+git
mac:operator-sdk jianzhang$ go version
go version go1.11.1 darwin/amd64 |
I was trying to build operator-sdk as per guide, but ran into issue when I tried make install. I got the following error: github.com/operator-framework/operator-sdk/vendor/google.golang.org/grpc/resolvercompile: version "go1.11.4" does not match go tool version "go1.11.5" Here are the details: go version go1.11.5 darwin/amd64 $GOPATH/src/github.com/operator-framework/operator-sdk |
@mandaltu123 Have you tried the |
hey @jianzhangbjz thanks for your reply. Here is my question:
TOTAL: 2m59.247678912s ==========> after this do I need to run "make install" ? or I dont need to run make install and operator-sdk will get installed ?
|
I am getting following error with make dep-update: goroutine 1 [running]: |
You should not need to run Can you try deleting I was able to run those steps successfully on Linux with go1.11.5, but I will also try reproducing on my Mac. EDIT: I was also able to successfully run those steps on Mac with go1.11.5. |
@joelanford thanks for the replies. I was able to set it up. That worked. However make install did not really automatically add entries for operator-sdk. I had to add it manually to the PATH and created a softlink on /usr/local/bin. Now I can run operator-sdk. Thanks a lot for your time guys, appreciate it. |
Bug Report
What did you do?
I build the operator-sdk per this quick-start, but got errors when running
make dep
:So, I tried to update the Golang packages, got errors:
What did you expect to see?
Build the operator-sdk successfully.
What did you see instead? Under which circumstances?
Environment
master branch
Kubernetes version information:
Using the
oc
instead.mac:operator-sdk jianzhang$ oc version
oc v3.11.0+0cbc58b
kubernetes v1.11.0+d4cacc0
features: Basic-Auth
Kubernetes cluster kind:
Are you writing your operator in ansible or go?
go
Possible Solution
Additional context
The text was updated successfully, but these errors were encountered: