fix(core): load env vars before lifecycle for batch mode #17713
Closed
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.
Current Behavior
when using batch mode the output style does not change to 'stream' causing odd terminal rendering.
Expected Behavior
when using batch mode the output style is set to 'stream'
Note:
these vars are loaded in
getRunner
as it's more testable than usingrunCommand
, but loading inrunCommand
would be simpler code wise. Open to switching implementation. usingrunCommand
could be used and tested via e2e, but in CI e2e is always static output so it would look like it "always" works with batch mode.Related Issue(s)
Fixes #