-
-
Notifications
You must be signed in to change notification settings - Fork 640
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
Invalid entry in the RECORD file in pants's wheels #18111
Comments
Looks like the issue comes from here: pants/build-support/bin/reversion.py Line 61 in 8da1ced
It should be |
Spoke too soon; the entries for the |
Yeah, so I find:
It looks like we do potentially modify all dist-info files: pants/build-support/bin/reversion.py Lines 102 to 105 in 8da1ced
So I think you've identified the right bug + fix above. @SpecLad do you want to post a PR for the fix? |
Not really, to be honest. Setting up the build environment seems complicated, and the fix is very simple, so I'm hoping that you can do it yourselves. |
@SpecLad thanks for the report. 👍🏽 |
@benjyw I can knock this out; just let me know by un-assigning yourself if that sounds good. It would be good to get this fixed before Friday / the march of 2.16.x through alpha and beyond. |
@jsirois thanks! Unassigned myself |
I've just verified
And fails against invalid hashes (I hacked this one manually):
And succeeds with a valid RECORD only. |
The hash format is fixed and a verification step added to prevent publishing invalid wheels going forward. Fixes pantsbuild#18111
The hash format is fixed and a verification step added to prevent publishing invalid wheels going forward. Fixes #18111
The hash format is fixed and a verification step added to prevent publishing invalid wheels going forward. Fixes pantsbuild#18111 (cherry picked from commit 817db43)
Describe the bug
This line is incorrect. According to the specification, the hash digest should a) be using the URL-safe alphabet, and b) have no padding at the end. In other words, the line should look like this:
Every other entry in the file is already correct, it's just
pants/VERSION
that's broken.Pants version
2.14.1, but I looked at some other versions too and they're broken in the same way.
OS
All.
Additional info
N/A
The text was updated successfully, but these errors were encountered: