-
-
Notifications
You must be signed in to change notification settings - Fork 18k
makeBinaryWrapper: protect wildcards in flags #255208
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| --append-flags "-foo -bar" \ | ||
| --add-flags "-x -y -z" \ | ||
| --add-flags -abc | ||
| --add-flags -abc \ | ||
| --add-flags "-g *.txt" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,5 +4,7 @@ SUBST_ARGV0 | |
| -y | ||
| -z | ||
| -abc | ||
| -g | ||
| *.txt | ||
| -foo | ||
| -bar | ||
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.
Whats the behaviour of makeWrapper
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.
Preserves wildcards. I amended the makeWrapper tests to cover this but didn't include that change because I wasn't changing makeWrapper; should I?
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 like it's already being tested
nixpkgs/pkgs/test/make-wrapper/default.nix
Line 67 in d64d76d
Let's do the same
reenableGlobthing in here toonixpkgs/pkgs/build-support/setup-hooks/make-wrapper.sh
Lines 66 to 70 in d64d76d
Do you think noglob is only necessary in
addFlags?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.
I haven't done a meticulous review of that entire file for quote hygiene.
--add-flagsand--append-flagsare the only makeWrapper flags documented to accept multiple arguments in one space-separated string, so I would expect the other handlers to quote their values and not need this.