fix(runtimes): rely on AWF_HOST_PATH for Lean toolchain discovery#350
Closed
Copilot wants to merge 2 commits into
Closed
fix(runtimes): rely on AWF_HOST_PATH for Lean toolchain discovery#350Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/eb291d3c-5b47-4f1f-9dc9-285e596c0533 Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
…ST_PATH Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/9e256475-8304-4ca3-95e8-45a82fd63555 Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
jamesadevine
April 28, 2026 21:51
View session
Collaborator
|
This was pants and not the root cause. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Lean runtime's install step couldn't be found by the agent inside AWF. The original code installed elan to
$HOME/.elanand then symlinked the wrappers into/tmp/awf-tools/on the assumption that$HOMEwasn't reachable from the sandbox — but the symlinks dangle because the wrappers re-exec into$HOME/.elan/toolchains/....AWF actually captures the host runner's
PATH(plus$GITHUB_PATHentries) intoAWF_HOST_PATHand re-exports it asPATHinside the chroot, so##vso[task.prependpath]is sufficient.Summary
src/runtimes/lean/mod.rs— install elan to its default$HOME/.elanlocation and##vso[task.prependpath]$HOME/.elan/bin. Drops themkdir -p /tmp/awf-tools+ symlink loop.src/runtimes/lean/extension.rs,docs/runtimes.md— note that Lean is onPATHinside the sandbox viaAWF_HOST_PATH; no absolute-path guidance needed.Test plan
cargo test(existingtest_lean_prepare_stepsstill assertselan-init.shis present)cargo clippy --all-targets --all-features