We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ubuntu 18.04.4 LTS (Bionic Beaver)
2020/06/28 21:27:23 WARNING: proto: file "pb.proto" is already registered A future release will panic on registration conflicts. See: https://developers.google.com/protocol-buffers/docs/reference/go/faq#namespace-conflict v2.1.0 h1:MC4d65RCVaEKy1iOFjsD51mybOwS8qdEVBi7ESDhUfE=
:443 { handle @v2 { root * /path/to/v2 } handle { root * /path/to/v1 } file_server @v2 { expression {http.request.cookie.v2} == 'yes' } }
caddy validate --config <path/to/caddyfile>
Valid configuration.
[...] proto: don't know how to compare [] [...] ...http.matchers.expression: CEL request matcher expects return type of bool, not primitive:BOOL
$ caddy validate --config ./Caddyfile2 2020/06/28 21:31:12 WARNING: proto: file "pb.proto" is already registered A future release will panic on registration conflicts. See: https://developers.google.com/protocol-buffers/docs/reference/go/faq#namespace-conflict 2020/06/28 21:31:12.253 INFO using provided configuration {"config_file": "./Caddyfile2", "config_adapter": ""} 2020/06/28 21:31:12 [INFO][cache:0xc0004a7a40] Started certificate maintenance routine 2020/06/28 21:31:12 proto: don't know how to compare [] 2020/06/28 21:31:12 [INFO][cache:0xc0004a7a40] Stopped certificate maintenance routine validate: loading http app module: provision http: server srv0: setting up route matchers: route 0: loading matcher modules: module name 'expression': provision http.matchers.expression: CEL request matcher expects return type of bool, not primitive:BOOL
The text was updated successfully, but these errors were encountered:
Unfortunately, this is a known regression. A fix is proposed in #3526, and some discussion in #3525 but it still needs to be evaluated.
You can use the CI artifact from that PR for the time being until we have a release that otherwise fixes it: https://github.com/caddyserver/caddy/actions/runs/149591246
Sorry, something went wrong.
mholt
francislavoie
Successfully merging a pull request may close this issue.
Environment:
Ubuntu 18.04.4 LTS (Bionic Beaver)
Caddy Version:
Caddyfile used (as a reduced test case, error can still be replicated):
Details
Steps to reproduce:
caddy validate --config <path/to/caddyfile>
on the Caddyfile aboveExpected output:
Valid configuration.
Actual output:
Full log:
The text was updated successfully, but these errors were encountered: