-
Notifications
You must be signed in to change notification settings - Fork 914
fix: always propagate env variables when executing commands #1982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
3518b4d to
f80ebae
Compare
Stratus3D
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @andrecloutier ! This is great, testing now to confirm this is what we want.
|
Seeing a failure locally when running That is from the dummy plugin installed for the test, but version 1.23.4 is actually my asdf Go version set in the repo's |
I'll have a closer look tonight. Do you have a sense of how much of an issue this is in practice? This seems like an issue specific to us using asdf to invoke go to test asdf. In that case, it does seem appropriate that I need to trace through the test code in a bit more detail, but my hunch right now is we should be unsetting any ASDF env variables across the board before invoking the test suite. Or setting a default empty value for Line 96 in 5d5d04f
Open to other thoughts. :) |
|
hrmm thinking about this more.. I suppose there's a practical risk that we've got one asdf managed application that calls into another (eg. pip -> python). Alright, I'll look for a solution for this. |
|
@andrecloutier-pd yes it manifests in this instance because I'm using asdf-managed go to run go tests for asdf (definitely an unusual case) but it's pretty common for us to have a shim from one plugin that invokes another shim from a different plugin (nodejs calling python) or perhaps even more than one shim per plugin (nodejs calling pip calling python possibly). I've not tested this well enough to say how severe of a problem this is, but something we'll have to get resolved before the next release. |
Updates commands to always propagate the system environment variables.
Addresses