-
-
Notifications
You must be signed in to change notification settings - Fork 636
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
Do not use a repository-PEX if a PEX has platforms specified #15031
Do not use a repository-PEX if a PEX has platforms specified #15031
Conversation
"enable_resolves", | ||
[ | ||
False, | ||
pytest.param(True, marks=pytest.mark.xfail(reason="#14991 causes this to fail in 2.11.x")), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test (which asserts that we don't use the entire lockfile) cannot pass on main
due to #14991, but I've validated that it passes on 2.10.x
, and will remove the xfail
while picking it.
src/python/pants/backend/python/util_rules/pex_from_targets_test.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
src/python/pants/backend/python/util_rules/pex_from_targets_test.py
Outdated
Show resolved
Hide resolved
[ci skip-build-wheels] [ci skip-rust]
2a0f650
to
ff263be
Compare
constraints_strings = FrozenOrderedSet( | ||
str(req) for req in parse_requirements_file(lock_string, rel_path=lockfile_path) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that this will handle hash correctly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed: added another commit to improve parsing.
[ci skip-rust] [ci skip-build-wheels]
# Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
[ci skip-rust] [ci skip-build-wheels]
ff263be
to
2f6f8e6
Compare
Parsing algorithm looks good. Thanks for adding tests! |
…ild#15031) [ci skip-rust] [ci skip-build-wheels]
…ild#15031) pantsbuild#14995 shows that pantsbuild#12222 re-broke for the `enable_resolves` case, since the fix for the issue was only checking the `resolve_all_constraints` field. Fixes pantsbuild#14995. # Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
#14995 shows that #12222 re-broke for the
enable_resolves
case, since the fix for the issue was only checking theresolve_all_constraints
field. Fixes #14995.