Skip to content

nodejs: Fix setup-hook addNodePath quoting#163694

Merged
infinisil merged 1 commit intoNixOS:masterfrom
infinisil:addNodePath-quoting
Mar 16, 2022
Merged

nodejs: Fix setup-hook addNodePath quoting#163694
infinisil merged 1 commit intoNixOS:masterfrom
infinisil:addNodePath-quoting

Conversation

@infinisil
Copy link
Copy Markdown
Member

Description of changes

The argument to addNodePath previously wasn't being quoted, leading to problems when the argument contains characters interpreted specially by bash, which was happening for me in a usage of npmlock2nix.

Ping @svanderburg @Radvendii @0xSbock

Things done
  • Confirmed that this fixes the problem
  • Rebuilt all changed packages -> No because it includes chromium which takes forever to build and this change can't cause any breakages

The argument to addNodePath previously wasn't being quoted, leading to
problems when the argument contains characters interpreted specially by
bash
@ofborg ofborg bot added 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 501-1000 This PR causes many rebuilds on Linux and should normally target the staging branches. labels Mar 11, 2022
@infinisil
Copy link
Copy Markdown
Member Author

I don't think this PR can cause problems, so I'm just going to merge it myself

@infinisil infinisil merged commit eb2f6e6 into NixOS:master Mar 16, 2022
@infinisil infinisil deleted the addNodePath-quoting branch March 16, 2022 01:24
@github-actions
Copy link
Copy Markdown
Contributor

Successfully created backport PR #164727 for release-21.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 501-1000 This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant