-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
caddyfile: Fix importing nested tokens for {block}
#7189
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
Conversation
|
Nice, thanks! Could you add some adapt tests to https://github.com/caddyserver/caddy/tree/master/caddytest/integration/caddyfile_adapt as well, to assert that the JSON output is as expected? |
Done! I just took what the current snapshpt looks like via |
francislavoie
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thanks for working on this.
|
There's another related issue with |
Sure, I'd like to try my hand on it |
and add test for both actual error case and mistakenly assumed to be error case
{block}
Fixes #7083
Modifies parser to fix case of assuming a site-block + 2 arguments being an "anonymous block" and thusly invalid.
It also slightly streamlines indivisual steps by getting all remaining block-arguments at once.
Tests for both failure and success cases are also added.