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

Check lock can resolve platforms at creation time. #1824

Merged
merged 1 commit into from
Jul 5, 2022

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Jul 4, 2022

When a lock is created or updated, support specifying --platform or
--complete-platform to enable up-front checks that the resulting lock
will resolve for the specified platforms before materializing the lock.

Fixes #1595

When a lock is created or updated, support specifying `--platform` or
`--complete-platform` to enable up-front checks that the resulting lock
will resolve for the specified platforms before materializing the lock.

Fixes pex-tool#1595
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.

Neat!

@jsirois jsirois merged commit c15508a into pex-tool:main Jul 5, 2022
@jsirois jsirois deleted the issues/1595 branch July 5, 2022 14:41
jsirois added a commit to jsirois/pex that referenced this pull request Jul 13, 2022
This was broken from the get-go in pex-tool#1787. It's unclear to me how the
`test_create_universal_platform_check` test added in pex-tool#1824 didn't fail
from the get-go, but it does now and this fix fixes that test for the
`--platform macosx_10.9_x86_64-cp-310-cp310 psutil==5.9.1` abbreviated
platform case.

Discovered in CI for pex-tool#1845 as a failure unrelated to that change.
jsirois added a commit that referenced this pull request Jul 13, 2022
This was broken from the get-go in #1787. It's unclear to me how the
`test_create_universal_platform_check` test added in #1824 didn't fail
from the get-go, but it does now and this fix fixes that test for the
`--platform macosx_10.9_x86_64-cp-310-cp310 psutil==5.9.1` abbreviated
platform case.

Discovered in CI for #1845 as a failure unrelated to that change.
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.

Feature request: "universal" lock mode can reject unsupported platforms
2 participants