Commit 5ab084b
committed
fix: establish hermetic environment for docs-site Node.js subprocesses
Remove use_default_shell_env and set up controlled hermetic environment
that includes node binary in PATH for npm subprocesses (like Sharp package
post-install scripts). This eliminates system environment contamination
while ensuring npm dependencies can find the hermetic node binary.
Key changes:
- Remove use_default_shell_env = True
- Set up minimal npm_env with hermetic PATH
- Include node binary directory for subprocess access
- Add npm cache configuration for isolation
This resolves the "sh: node: command not found" errors in docs-site builds
while maintaining hermetic isolation principles.1 parent 3db4824 commit 5ab084b
1 file changed
+17
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
73 | 86 | | |
74 | 87 | | |
75 | 88 | | |
| |||
81 | 94 | | |
82 | 95 | | |
83 | 96 | | |
84 | | - | |
| 97 | + | |
| 98 | + | |
85 | 99 | | |
86 | 100 | | |
87 | 101 | | |
| |||
96 | 110 | | |
97 | 111 | | |
98 | 112 | | |
99 | | - | |
| 113 | + | |
| 114 | + | |
100 | 115 | | |
101 | 116 | | |
102 | 117 | | |
| |||
158 | 173 | | |
159 | 174 | | |
160 | 175 | | |
161 | | - | |
162 | 176 | | |
163 | 177 | | |
164 | 178 | | |
| |||
0 commit comments