parser.y: properly abstract over to-be-created strings#14644
parser.y: properly abstract over to-be-created strings#14644Radvendii merged 2 commits intoNixOS:masterfrom
Conversation
|
Looks pretty good to me, but needs a formatter run. |
xokdvium
left a comment
There was a problem hiding this comment.
One minor comment. Also would like to see more tests. I can take over if that's fine with you @Radvendii
0c6ba70 to
ee2277e
Compare
|
I added a few more tests (some results still surprised me. You're also welcome to add more of course. One problem is that this is such cursed nix code that the formatter doesn't know what to do with it and CI is failing.
|
Fixes the regression from eab467e with dynamic attributes that a simple string expressions. Co-authored-by: Sergei Zimmerman <sergei@zimmerman.foo>
Regression tests for the previous commit. Co-authored-by: Sergei Zimmerman <sergei@zimmerman.foo> Co-authored-by: piegames <git@piegames.de>
xokdvium
left a comment
There was a problem hiding this comment.
Added a bit more tests (example from @piegamesde) and clarified some comments, added monostate instead of default initialized empty std::string_view.
|
@Ericson2314 do you plan to tag a release containing this fix? |
|
@flokli I haven't been involved with point releases very much at all, but yes that sounds like a good idea to me. I will raise it with the others. |
This fixes #14642 and adds tests to prevent regression.
In eab467e, I had missed cases like
"${"string"}", where theExpris already anExprString. This PR provides a wrapper aroundstd::variantthat correctly abstracts over when we have a string and when we have anotherExpr.Motivation
Context
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.