Repository navigation
fix: refactor for running subproject commands - #1030
Merged
Merged
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
robsimmons
force-pushed
the
run-elan-command
branch
from
October 13, 2026 17:36
69072d5 to
e205d95
Compare
undo resets for ELAN and ELAN_HOME, special-case LAKE_RESTORE_ARTIFACTS, create an EnvOverride type, and allow the user to pick where the noisier error form ends up
robsimmons
force-pushed
the
run-elan-command
branch
from
October 15, 2026 00:07
063759d to
7c6f12e
Compare
| $ elan run --install <toolchain> foo bar | ||
| ``` | ||
|
|
||
| The function manipulates environment variables (see {name}`getSpawnArgsForToolchain`. |
Collaborator
There was a problem hiding this comment.
I think it's better to describe here what it's doing, because "see" references are difficult to follow from hovers.
Collaborator
Author
There was a problem hiding this comment.
feels like it needs an undesirable copy-paste of docstring, but I did that in 3318f24
Collaborator
|
This is definitely the right way to go. I don't really see why we need the |
Co-authored-by: David Thrane Christiansen <[email protected]>
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.
Closes #1027 in the context of a larger refactor, which consolidates the various
elan --install <toolchain> <cmd>invocations that had gotten copy-pasted in several different places (and had begun to drift) into a single set of helper functions.I have some uncertainty about which environment variables were intentionally reset in different ways where. This PR is maximalist about which environment variables are cleared, except for
ELAN_HOMEandELAN, which didn't seem correct (and could mess up a Workbench-style installation). Those were introduced in #404 without much commentary.Restores the test that was disabled in #1031.