Skip to content

Conversation

di
Copy link
Member

@di di commented Sep 9, 2025

@di di requested a review from a team as a code owner September 9, 2025 14:28
@di di enabled auto-merge (squash) September 9, 2025 14:28
fp.write(wheel_metadata_contents)
try:
with open(temporary_filename + ".metadata", "wb") as fp:
fp.write(wheel_metadata_contents)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: do we know what filesystem max length this is supporting? This is only one limit, and we have other limits in play: S3/B2 max length is <full object path> + filename must be below 1024 - does our filesystem allow for longer than that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this limit is dependent on the filesystem in use (i.e. it could change in the future) I think we still should guard against this error here like this. If we want to additionally guard against the S3/B2 limits, we should do that as well (but note that the filename & path in the linked issue is much shorter than 1024 characters, so it wouldn't have caught this specific instance).

@di di merged commit f9c874a into pypi:main Sep 9, 2025
20 checks passed
@di di deleted the handle-long-filenames branch September 9, 2025 15:48
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.

2 participants