-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
celmatcher.go: cannot use func #5797
Comments
Am mobile currently, but what happens if you run go mod tidy and then run the tests? |
@mholt , the cleaning of cache and tidying does not help. |
This commit from google/cel-go broke it: The signature of |
We didn't bump the dependency though did we? I'm confused. |
Not an issue with Caddy nor the Go dep management. I am not able to replicate it. I've successfully built Caddy v2.7.4 with the caddy-trace module without issues. @greenpau, make sure you don't upgrade cel-go accidentally to HEAD. |
@mohammed90 , thank you for looking into it! Yes, that was it. the cel-go v1.18 has the issue. I downgraded it to v1.17 and it is ok now. It was not at the HEAD, but rather latest release. The changes in v1.18 contain the changes to the signature you mentioned. |
Thanks for the confirmation! |
I don't understand how you upgraded CEL in the first place. |
and it picked the latest |
Oh, I suggest you always use |
I'd go as far as saying only touch your direct deps; and let them (upstream) manage their deps (your transitive deps) because they know how those will impact the code, unless you really have to go out of your way to upgrade the transitive dependency because of an urgent need. |
Thanks for investigating this, @mohammed90! And for the tip @francislavoie |
@mholt , upgrading to 2.7.4. Please advise.
go.mod
follows:The test fail with the following errors:
The text was updated successfully, but these errors were encountered: