Skip to content
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

Make sure PexInfo is isolated from os.environ. #711

Merged
merged 1 commit into from
Apr 21, 2019

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Apr 21, 2019

Before this change a PexInfo constructed with pexrc files ignored
would be subject to mutation through the side-effects of later
os.environ mutation. Guard against this by consistently copying the
environment the PexInfo is constructed with and add tests that ensure
the guard works.

Noticed working #710.

Before this change a `PexInfo` constructed with pexrc files ignored
would be subject to mutation through the side-effects of later
`os.environ` mutation. Guard against this by consistently copying the
environment the `PexInfo` is constructed with and add tests that ensure
the guard works.

Noticed working pex-tool#710.
@jsirois jsirois requested a review from Eric-Arellano April 21, 2019 02:19
Copy link
Contributor

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding tests!

tests/test_variables.py Show resolved Hide resolved
@jsirois jsirois merged commit 93000ee into pex-tool:master Apr 21, 2019
@jsirois jsirois deleted the PexInfo/hermeticize branch April 21, 2019 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants