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

use relative paths within wheel cache #979

Merged
merged 3 commits into from
May 18, 2020

Conversation

tdyas
Copy link
Contributor

@tdyas tdyas commented May 15, 2020

When running pex within a chroot environment, the symlinks generated by pex/pex/resolver.py use the absolute path within the chroot in the path for the symlinks' targets. These symlinks are invalid paths to any program that accesses the wheel cache outside of the chroot. (This was seen within a remote execution environment with Buildfarm.)

Switch to using relative paths for the symlinks.

Fixes #978.

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.

This looks good.

@Eric-Arellano Eric-Arellano requested a review from benjyw May 18, 2020 19:21
@Eric-Arellano
Copy link
Contributor

Style check failed. Iirc you can run tox -e format-run.

@benjyw benjyw merged commit e00b57d into pex-tool:master May 18, 2020
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.

wheel cache should use relative path symlinks to allow for chroot environments
3 participants