Skip to content
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

[2.3-maintenance] Escape ${ in strings when printing Nix expressions #9260

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

flokli
Copy link
Contributor

@flokli flokli commented Oct 31, 2023

Backport of #4012 to 2.3-maintenance.

Otherwise the result of the printing can't be parsed back correctly by Nix (because the unescaped ${ will be parsed as the begining of an anti-quotation).

Fix #3989

(cherry picked from commit 250f8a4)

Motivation / Context

TVL is currently using a set of patches backported to 2.3. WIth the recent activity in 2.3-maintenance, we'd like to upstream these patches.

Priorities

Add 👍 to pull requests you find important.

Otherwise the result of the printing can't be parsed back correctly by
Nix (because the unescaped `${` will be parsed as the begining of an
anti-quotation).

Fix NixOS#3989

(cherry picked from commit 250f8a4)
@flokli flokli changed the title Escape ${ in strings when printing Nix expressions [2.3-maintenance] Escape ${ in strings when printing Nix expressions Oct 31, 2023
Copy link
Member

@roberth roberth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would prefer to help with whatever is stopping you from upgrading, but I like all kinds of fixes.

@edolstra edolstra merged commit 5757632 into NixOS:2.3-maintenance Oct 31, 2023
6 checks passed
@flokli flokli deleted the backport-4012 branch November 1, 2023 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants