-
Notifications
You must be signed in to change notification settings - Fork 352
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
operator-sdk build fails on latest master with 'make images-dev' #863
Comments
It may be due to |
You may need to upgrade your Operator SDK binary to latest 0.9.0 version. |
@astefanutti i'm on the latest version |
You need to invoke the Go commands with the environment variable |
@astefanutti , I'm using GO111MODULE env variable. It's strange that all were working 2 days ago. |
I'm running out of ideas 😉 but that |
@astefanutti do we need to place code inside $GOPATH/src Before removing line 'go mod vendor' from make all was working fine. |
mh, go mod vendor should have been removed long ago |
@lburgazzoli it just removed 2 days ago by this commit |
ah that one yes |
@lburgazzoli after this fix this issue occurs on my laptop. |
@dmvolod it seems Go modules is deactivated somehow in your environment, and it still uses Dep, which requires the Could you double check you environment variables and your Go version? Do you have any |
@astefanutti , just GOPATH and GO111MODULE |
@dmvolod, what about I would try Anyhow, Go does not activate modules, hence your error, which is likely environment related. |
I tried different versions and after five into operator-sdk code, detects that it's looking for the gopkg.toml file first. I deleted it and all becoming build fine. |
The only reason I know we've decided to keep the Dep files around is for the Knative eventing dependency on Camel K until it migrates to Go modules too: https://github.com/knative/eventing-contrib/blob/5ce18048c08b19437ac72fbdfeb4bf4a8d17c862/Gopkg.toml#L105. It's weird it does not seems to reproduce on CI or locally for me 🤔. So there may be another way to work around this. |
Ok, will look into another workaround. |
@astefanutti May be I can't see very simple things. |
So I have the same issue and the CI does not fail because it does not use the operator-sdk but plain docker :) so I would suggest to apply the same logic in the makefile. Another hacky way could be to run the operator from a different location so it does not find Gopkg.lock. @astefanutti @nicolaferraro what do you think ? We should also report the issue upstream |
@dmvolod damn it seems my brain is throttling beyond 40ºC here, so I missed that |
@lburgazzoli I've created #872 (remove Dep files) which hopefully should make operator-sdk less confused about the history of Go dependencies management 😄. |
but it does not make any difference as operator-sdk is not used by the travis build :) |
Btw, I've created #871 to avoid |
@lburgazzoli , @astefanutti thanks. |
Let me close this as it should be fixed with #872. Feel free to re-open if that is not the case. |
@dmvolod thanks a lot for your valuable inputs on this. Let us know the outcome of the discussion upstream. |
@aldettinger, I'm fine with build right now. |
It may be another issue then, I'll investigate that. Many thanks @dmvolod . |
Strange operator-sdk build behavior after some latest updates
The text was updated successfully, but these errors were encountered: