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

Fix xargs signIfRequired #631

Merged
merged 3 commits into from
May 29, 2024
Merged

Conversation

9999years
Copy link
Contributor

@9999years 9999years commented May 29, 2024

Motivation

Fixes a bug introduced with #625.

signIfRequired is a shell function, not an executable, so we can't call it with xargs.

https://github.com/NixOS/nixpkgs/blob/7187b3ee8e2687106e8982b02d2890689471579e/pkgs/os-specific/darwin/signing-utils/utils.sh#L38-L43

xargs: signIfRequired: No such file or directory

Uses this approach:

https://github.com/NixOS/nixpkgs/blob/7187b3ee8e2687106e8982b02d2890689471579e/pkgs/os-specific/darwin/signing-utils/auto-sign-hook.sh#L19-L21

Tested locally with my build.

Checklist

  • added tests to verify new behavior
  • added an example template or updated an existing one
  • updated docs/API.md (or general documentation) with changes
  • updated CHANGELOG.md

`signIfRequired` is a shell function, not an executable, so we can't
call it with `xargs`.
@9999years 9999years marked this pull request as ready for review May 29, 2024 17:07
Copy link
Owner

@ipetkov ipetkov left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this! Sorry for the breakage, didn't have the ability to test it out myself 😅

Not needed since we aren't juggling file descriptors anymore
@ipetkov ipetkov enabled auto-merge (squash) May 29, 2024 23:16
@ipetkov ipetkov merged commit 480dff0 into ipetkov:master May 29, 2024
19 checks passed
@9999years 9999years deleted the fix-signifrequired-xargs branch May 30, 2024 15:56
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.

3 participants