Commit b0ec54e
fix: add CARGO_HOME/bin to GitHub Actions PATH for rust tests (#749)
* Initial plan
* fix: add CARGO_HOME/bin to GitHub Actions PATH for rust tests
The rust-toolchain action installs rustc/cargo at ~/.cargo/bin but doesn't
add this directory to PATH. This causes "command not found" errors when
running rustc/cargo in chroot mode tests.
Fix by explicitly adding CARGO_HOME/bin to $GITHUB_PATH after detecting
CARGO_HOME from the cargo binary location. This ensures both the host
and the chroot environment can find Rust binaries.
Also added a clarifying comment that CARGO_HOME must be exported so
sudo -E can preserve it for the awf CLI.
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
---------
Co-authored-by: anthropic-code-agent[bot] <242468646+Claude@users.noreply.github.com>
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>1 parent e3aae3f commit b0ec54e
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
187 | 188 | | |
188 | 189 | | |
189 | 190 | | |
| |||
199 | 200 | | |
200 | 201 | | |
201 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
202 | 206 | | |
203 | 207 | | |
204 | 208 | | |
| |||
0 commit comments