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

Ensure PEX files aren't symlinked in venv. #1240

Merged
merged 1 commit into from Feb 18, 2021

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Feb 18, 2021

Ensure PEX file contents are materialized in venvs as durable files.
Previously, distributions were handled correctly but PEX sources and
resources were not. A test is added that exercised the bug but is now
fixed.

Fixes #1239

Ensure PEX file contents are materialized in venvs as durable files.
Previously, distributions were handled correctly but PEX sources and
resources were not. A test is added that exercised the bug but is now
fixed.

Fixes pex-tool#1239
)
venv_pex = os.path.join(venv, "pex")
shutil.rmtree(src)
assert 42 == subprocess.Popen(args=[venv_pex]).wait()
Copy link
Member Author

Choose a reason for hiding this comment

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

This was the failing line prior to the fix. The main module was not found.

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.

Great, thank you.

@jsirois jsirois merged commit 2df1333 into pex-tool:master Feb 18, 2021
@jsirois jsirois deleted the issues/1239 branch February 18, 2021 15:48
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.

The --seed mode for a --venv PEX is unsafe.
2 participants