Commit 3099a14
fix: add GOROOT/bin to PATH in chroot mode for correct Go version
When GOROOT is provided (via AWF_GOROOT), the entrypoint now prepends
$GOROOT/bin to PATH before exporting GOROOT. This ensures the correct
Go version is found when actions/setup-go installs a specific version.
Previously, only GOROOT was exported without adding its bin directory
to PATH. This caused the system Go (e.g., 1.24.12) to be found instead
of the setup-go version (e.g., 1.25.0) because AWF_HOST_PATH might have
wrong ordering due to sudo resetting PATH.
This matches how JAVA_HOME and CARGO_HOME are handled - their bin
directories are prepended to PATH.
Fixes gh-aw smoke-copilot test failure: "Go 1.24.12 < required 1.25.0"
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 970c70c commit 3099a14
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
| 236 | + | |
236 | 237 | | |
237 | | - | |
| 238 | + | |
| 239 | + | |
238 | 240 | | |
239 | 241 | | |
240 | 242 | | |
| |||
251 | 253 | | |
252 | 254 | | |
253 | 255 | | |
254 | | - | |
| 256 | + | |
| 257 | + | |
255 | 258 | | |
256 | | - | |
| 259 | + | |
| 260 | + | |
257 | 261 | | |
258 | 262 | | |
259 | 263 | | |
| |||
0 commit comments