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

Fix: Creating ZIP archives with no file extension (Cherry-pick of #21694) #21706

Draft
wants to merge 1 commit into
base: 2.23.x
Choose a base branch
from

Conversation

WorkerPants
Copy link
Member

This fixes #21693

There are a number of changes involved:

  • Add a --adjust-sfx command-line flag when invoking the zip binary -- the actual fix for the bug
  • Modify the test_create_zip_archive unit test:
    • Parametrize it for multiple test scenarios
    • Modify the last section, as it was failing for anything but .zip extensions
    • Note: This is a best-effort change that I'm not super confident in. There may be better or more canonical ways to do this
  • Remove the unsed ZipBinary.create_archive_argv method

This fixes #21693

There are a number of changes involved:
* Add a `--adjust-sfx` command-line flag when invoking the `zip` binary
-- the actual fix for the bug
* Modify the `test_create_zip_archive` unit test:
  * Parametrize it for multiple test scenarios
* Modify the last section, as it was failing for anything but `.zip`
extensions
* **Note**: This is a best-effort change that I'm not super confident
in. There may be better or more canonical ways to do this
* Remove the unsed `ZipBinary.create_archive_argv` method
@WorkerPants WorkerPants added this to the 2.23.x milestone Dec 3, 2024
@WorkerPants WorkerPants added the category:bugfix Bug fixes for released features label Dec 3, 2024
@WorkerPants WorkerPants requested a review from lilatomic December 3, 2024 05:07
@huonw huonw marked this pull request as draft December 18, 2024 02:22
@huonw
Copy link
Contributor

huonw commented Dec 18, 2024

I've marked this as draft for now, because I want to get #21770 out, without any changes that aren't included in rc0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants