-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add local binaries update system #629
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -116,7 +116,7 @@ help: ## Show this help message. | |||||
| ##@ General | ||||||
|
|
||||||
| .PHONY: install | ||||||
| install: setup nix-flake-update nix-build nix-switch shell-install ## Set up full environment (setup, flake-update, build, switch, shell-install). | ||||||
| install: setup nix-build nix-switch shell-install ## Set up full environment (setup, flake-update, build, switch, shell-install). | ||||||
|
||||||
| install: setup nix-build nix-switch shell-install ## Set up full environment (setup, flake-update, build, switch, shell-install). | |
| install: setup nix-build nix-switch shell-install ## Set up full environment (setup, build, switch, shell-install). |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,68 @@ | ||||||||
| { pkgs, ... }: | ||||||||
| let | ||||||||
| inherit (pkgs) lib; | ||||||||
| in | ||||||||
| { | ||||||||
| launchd.agents.make-updater = lib.mkIf pkgs.stdenv.isDarwin { | ||||||||
| enable = true; | ||||||||
| config = { | ||||||||
| ProgramArguments = [ | ||||||||
| "${pkgs.bash}/bin/bash" | ||||||||
| "${./update.sh}" | ||||||||
| ]; | ||||||||
| Environment = { | ||||||||
| PATH = "${ | ||||||||
| lib.makeBinPath [ | ||||||||
| pkgs.git | ||||||||
| pkgs.bash | ||||||||
| pkgs.coreutils | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: macOS launchd PATH omits sed/gnused, but make update requires sed, causing the mac updater to fail Prompt for AI agents |
||||||||
| pkgs.gnumake | ||||||||
| ] | ||||||||
|
Comment on lines
+15
to
+20
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||||||||
| }:/opt/homebrew/bin:/usr/local/bin"; | ||||||||
|
||||||||
| }:/opt/homebrew/bin:/usr/local/bin"; | |
| }:/opt/homebrew/bin:/usr/local/bin"; | |
| AUTOMATED_UPDATE = "true"; |
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.
The systemd service's PATH is missing dependencies required by the update script. The script may need to build Rust projects with cargo or clone repositories with ghq. This will fail if they are not in the PATH. Please add pkgs.rustc (for cargo) and pkgs.ghq to the lib.makeBinPath list.
lib.makeBinPath [
pkgs.bash
pkgs.coreutils
pkgs.curl
pkgs.gawk
pkgs.ghq
pkgs.git
pkgs.gnumake
pkgs.gnused
pkgs.nix
pkgs.rustc
pkgs.sudo
pkgs.which
]
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| cd ~/dotfiles | ||
|
|
||
| make update |
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.
The comment for the
installtarget is out of sync with its dependencies. It still mentionsflake-update, butnix-flake-updatehas been removed from the target. Please update the comment to accurately reflect the target's behavior.