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

Fix PEXBuilder.clone. #575

Merged
merged 3 commits into from
Oct 4, 2018
Merged

Fix PEXBuilder.clone. #575

merged 3 commits into from
Oct 4, 2018

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Oct 4, 2018

Previously clone copied distributions twice. One copy was made by the
underlying Chroot, and then another was manually performed. The
manual copy was only needed to update the internal _distributions
set, so just do that.

A test that failed before the fix is added to ensure distributions with
unwriteable files can be cloned.

Fixes #570

Previously clone copied distributions twice. One copy was made by the
underlying Chroot, and then another was manually performed. The manual
copy was only needed to update the internal _distributions set, so just
do that.

A test that failed before the fix is added to ensure distributions with
unwriteable files can be cloned.

Fixes pex-tool#570
@jsirois
Copy link
Member Author

jsirois commented Oct 4, 2018

@fhoering if you have time to give this a review I'd be grateful. Thanks for finding this - it unearthed something surprising!

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.

I don't 100% understand the underlying motivation / what the code is doing. But code quality looks good and everything seems reasonable to me.

tests/test_bdist_pex.py Show resolved Hide resolved
tests/test_bdist_pex.py Outdated Show resolved Hide resolved
@jsirois jsirois merged commit b17d37d into pex-tool:master Oct 4, 2018
@jsirois jsirois deleted the issues/570 branch October 4, 2018 17:43
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.

[Errno 13] Permission denied when executing with bdist_pex
2 participants