runtime: downgrade github.com/google/cel-go and cel.dev/expr#865
Conversation
Signed-off-by: Mateusz Puczyński <mati6095@gmail.com>
187feea to
014283a
Compare
|
@aerfio Flux doesn't seem to be using https://github.com/search?q=org%3Afluxcd%20k8s.io%2Fapiserver%2Fpkg%2Fcel%2Fenvironment&type=code This seems to be a bug/regression in upstream CEL for users in your specific situation. Did you raise an issue with upstream CEL about this? |
|
@matheuscscp No, it's not about CEL libs. The IIUC this issue is primarily caused by the fact that cel-go has a breaking change in it's v0.23.0 minor version, but they're still v0 so they're allowed to do this. k8s.io/apiserver still uses older version of this lib, It's a choice of compatibility with k8s.io/apiserver or keeping newest |
Actually we do, we bumped to Kevin was initially introducing this functionality as a custom CEL library in this PR: fluxcd/notification-controller#948 And using it like this: Now bumping to What's your use case for including both
|
I'm using
Yup, I get that, and all the implications that stem from it. Ok, given that you already use newest cel-go somewhere else I don't think this PR can be merged, I'll try to find another way or wait for k8s.io/apiserver to catch up. Thank you for your attention @matheuscscp |
Downgrade these deps to versions used in k8s.io/apiserver:
Reason: this change prevents compilation error when the project's dependencies (or the project itself) imports both
k8s.io/apiserver/pkg/cel/environmentandgithub.com/fluxcd/pkg/runtime/*.Reproduction:
go.mod:compiling this simple app results in:
Trying to force correct deps also fails: