Reverse env variable sourcing order #421
Open
+2
−2
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.
Reverses what overrides what when env variables are being applied.
Note, I am not sure this is actually what we should do, but will share more rationale below.
Motivation and Context
As noted in this issue , when the PATH is set for the Inspector process, it appears to get overridden with the defaults set by the SDK.
Looking at the order, it seems like it would make more sense to do this the other way around.
My reasoning is that if you are explicitly setting the PATH then you would want that path to be used.
How Has This Been Tested?
Wrote some ad-hoc scripts to test this outside of Inspector, just to verify that my custom PATH was being referenced. I can add some dedicated testing to the repo if we would like to make sure there aren't any other side effects.
Breaking Changes
Technically if users are expecting the existing behavior to be correct, then this could break existing usage.
Types of changes
Checklist