Skip to content

Commit 8a6b14d

Browse files
committed
docs: add guidance for resolving runtime binaries by full path
Prevents future bugs where bare 'npm' or 'node' calls fail because the embedded runtime is not on root's PATH.
1 parent 64848fb commit 8a6b14d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

bin/AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Scope: shell CLI and operational scripts under `bin/`.
1818
- Reuse shared helpers (`shell-common.sh`, `paths-common.sh`, `release-common.sh`, etc.) instead of duplicating constants or logging/error patterns.
1919
- Prefer portable shell patterns; distro-specific branches are acceptable when reliability improves.
2020
- Any security-relevant shell change must include/adjust tests.
21+
- **Never call `node`, `npm`, etc. by bare name** in scripts that run as root. The embedded runtime is not on root's PATH. Use `runtime-node.sh` helpers (`bb_resolve_runtime_node_bin`, `bb_resolve_runtime_node_bin_dir`) to resolve the full path first.
2122

2223
## Critical files
2324

0 commit comments

Comments
 (0)