Skip to content

refactor: remove zip64 extra field update#732

Merged
Its-Just-Nans merged 3 commits intomasterfrom
fix-follow-717
Mar 18, 2026
Merged

refactor: remove zip64 extra field update#732
Its-Just-Nans merged 3 commits intomasterfrom
fix-follow-717

Conversation

@Its-Just-Nans
Copy link
Copy Markdown
Member

A wrong merge of master deleted these changes form #717

@Its-Just-Nans Its-Just-Nans enabled auto-merge March 18, 2026 05:50
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request re-implements a previously lost change that removes a redundant update mechanism for ZIP64 extra fields. The modification ensures that the extra field is solely written to the output stream, rather than also being updated in an in-memory structure unnecessarily, thereby fixing a regression caused by an incorrect merge.

Highlights

  • Redundant ZIP64 Extra Field Update Removed: Eliminated unnecessary code that attempted to update the extra_field in memory after writing the ZIP64 extended information block to the output stream, streamlining the ZIP64 handling logic.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@amazon-q-developer amazon-q-developer bot left a comment

Choose a reason for hiding this comment

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

This pull request removes critical synchronization code that keeps in-memory metadata consistent with on-disk data. The deletion of the extra_field update logic (lines 2453-2459) creates a data inconsistency where the cached ZIP64 extra field data no longer reflects what was written to disk. This is a logic error that blocks merge as it can lead to archive corruption or read failures.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

Comment thread src/write.rs
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the update_local_zip64_extra_field function. While the intention to simplify the code is good, removing the update to the in-memory extra_field introduces a critical bug. The deep_copy_file function relies on this in-memory field to contain the correct, final sizes for zip64 files. Without the update, it will use placeholder values, leading to corrupt zip entries. I've added a comment with a suggestion to restore the logic while keeping the improved variable naming.

Comment thread src/write.rs
@Its-Just-Nans Its-Just-Nans added this pull request to the merge queue Mar 18, 2026
Merged via the queue into master with commit 3461ae2 Mar 18, 2026
130 checks passed
@Its-Just-Nans Its-Just-Nans deleted the fix-follow-717 branch March 18, 2026 10:46
@Pr0methean Pr0methean mentioned this pull request Mar 17, 2026
@Its-Just-Nans Its-Just-Nans self-assigned this Mar 19, 2026
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.

1 participant