Commit d98aecd
fix(chroot): pass CARGO_HOME and JAVA_HOME for CI runners
Similar to the GOROOT fix, this adds support for passing CARGO_HOME and
JAVA_HOME environment variables to the chroot environment. These are
needed because:
1. Rust toolchain on GitHub Actions installs cargo/rustc to $CARGO_HOME/bin
which needs to be added to PATH explicitly
2. Java setup actions set JAVA_HOME but $JAVA_HOME/bin may not be in PATH
when running through sudo
The fix:
- docker-manager.ts now passes AWF_CARGO_HOME and AWF_JAVA_HOME
- entrypoint.sh adds these directories to PATH in the generated script
- JAVA_HOME is also exported so Java can find its runtime
This fixes the "command not found" errors (exit code 127) for cargo,
rustc, and java commands in chroot mode on GitHub Actions.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 647a54a commit d98aecd
2 files changed
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
220 | 232 | | |
221 | 233 | | |
222 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
338 | | - | |
| 337 | + | |
| 338 | + | |
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
348 | 356 | | |
349 | 357 | | |
350 | 358 | | |
| |||
0 commit comments