-
-
Notifications
You must be signed in to change notification settings - Fork 606
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
[v2.20.0] Lockfile generation with multiple indexes fails due to mismatching hashes #20808
Comments
I'm a little confused on two fronts here: First you have Second, when I run this example I also get hash mismatches with Pants 2.16 through 2.19. |
I can reproduce the same hash mismatch with the following PEX call (with Pex v2.3.1, line breaks added for clarity):
When I leave out both the |
I tried the different pip versions listed in Pex's |
The reproducer has just one resolve, but two indexes. In reality, I work with multiple resolves for PyTorch, one that includes the CPU only version, and another one that includes the CUDA version. In case someone else runs into the same issue: I work around the described problem by generating the lockfile for the CPU resolve, disabling the second package index in pants.toml, generating the CUDA resolve, and resetting pants.toml to its original state. |
Describe the bug
Upgrading Pants from v2.19.1 (PEX pinned to v2.1.137) to v2.20.0 breaks lockfile generation for PyTorch when multiple indexes are involved:
Actual output:
Apparently,
torch-2.2.1-cp39-none-macosx_11_0_arm64.whl
has different content on both indexes.Pants version
v2.20.0
OS
Linux
Additional information
I suspected the PEX upgrade as part of the Pants upgrade to be the culprit, so I started testing different PEX versions. I found that PEX v2.1.148 creates the lockfile as expected, whereas v2.1.149, v2.1.150, and v2.3.1 don't. The diff look unsuspicious to me, though.
Related to #18965.
The text was updated successfully, but these errors were encountered: