-
Notifications
You must be signed in to change notification settings - Fork 0
fix(dotfiles-updater): add missing PATH dependencies for Linux systemd service #413
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
b8b7f47
a9b8bb3
4b70b44
2009871
0e3fe34
e04a30c
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -40,6 +40,10 @@ in | |||||
| lib.makeBinPath [ | ||||||
| pkgs.git | ||||||
| pkgs.bash | ||||||
| pkgs.coreutils | ||||||
| pkgs.gnumake | ||||||
| pkgs.curl | ||||||
| pkgs.nix | ||||||
|
Comment on lines
+43
to
+46
|
||||||
| ] | ||||||
| }"; | ||||||
|
||||||
| }"; | |
| }:/usr/local/bin:/usr/bin"; |
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.
🧩 Analysis chain
🏁 Script executed:
# First, examine the complete default.nix file cat -n home-manager/services/dotfiles-updater/default.nixRepository: shunkakinoki/dotfiles
Length of output: 1930
🏁 Script executed:
Repository: shunkakinoki/dotfiles
Length of output: 344
🏁 Script executed:
Repository: shunkakinoki/dotfiles
Length of output: 549
🏁 Script executed:
Repository: shunkakinoki/dotfiles
Length of output: 4493
🏁 Script executed:
Repository: shunkakinoki/dotfiles
Length of output: 649
🏁 Script executed:
Repository: shunkakinoki/dotfiles
Length of output: 580
Darwin launchd service requires equivalent dependencies for consistency and reliability.
The update.sh script runs install.sh on both Darwin and Linux, and install.sh depends on curl (for Nix installation), gnumake, and nix. While the Darwin PATH includes fallback directories (
/opt/homebrew/binand/usr/local/bin), explicitly addingpkgs.gnumake,pkgs.curl, andpkgs.nixto the Darwin service PATH (lines 16-18) would ensure these tools are available without relying on prior installations or fallback paths, matching the Linux service configuration and preventing potential exit code 127 failures.🤖 Prompt for AI Agents