fix(home): put /usr/bin on the security-audit activation PATH
The Skills CLI spawns git to clone the skill. The activation block only prepended /opt/homebrew/bin, so git at /usr/bin/git was not resolvable and the rebuild failed with "spawn git ENOENT". Prepend /usr/bin too.
This commit is contained in:
1 parent
d01d13ff1c
commit
75088e1f15
1 file changed
+4
-3
@@ -422,9 +422,10 @@ in
|
||||
home.activation.securityAuditSkill = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
set -euo pipefail
|
||||
# Activation PATH lacks /opt/homebrew/bin, so npx's `#!/usr/bin/env node`
|
||||
# shebang fails. Prepend only - replacing PATH breaks the rest of the HM
|
||||
# activation (nix-env, gettext).
|
||||
export PATH="/opt/homebrew/bin:$PATH"
|
||||
# shebang fails. It also lacks /usr/bin, so the Skills CLI cannot spawn
|
||||
# /usr/bin/git and the clone fails with "spawn git ENOENT". Prepend both -
|
||||
# replacing PATH breaks the rest of the HM activation (nix-env, gettext).
|
||||
export PATH="/opt/homebrew/bin:/usr/bin:$PATH"
|
||||
npx=/opt/homebrew/bin/npx
|
||||
# Canonical copy plus the Claude Code link: rerun when either is missing so a
|
||||
# half-removed install heals, then skip while both exist. No `exit 0` here:
|
||||
|
||||
Reference in new issue
Block a user