Skip to content

refactor: don't store converted filenames; convert on demand instead; and don't use Arc since it only deduplicates when copying to same path in another archive#807

Merged
Pr0methean merged 52 commits intomasterfrom
only-file-name-raw-as-key
May 4, 2026

Conversation

@Its-Just-Nans
Copy link
Copy Markdown
Member

No description provided.

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 PR refactors the file name storage mechanism from Arc<str> to using raw bytes directly. However, there are critical compilation errors that prevent this code from building:

  1. Line 561 in src/read.rs: Undefined variable file_name_arc - this variable is referenced but never declared
  2. Line 568 in src/read.rs: Assignment to removed field result.file_name - the field was removed from ZipFileData but this assignment remains
  3. Line 218 in src/types.rs: Reference to non-existent self.is_utf8 property - should use ZipFlags::matching instead

These errors will cause compilation failure and block merge. The refactoring approach of removing the file_name: Arc<str> field and using raw bytes is sound, but the implementation is incomplete with several references to the old structure remaining in the code.


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/read.rs Outdated
Comment thread src/types.rs Outdated
Comment thread src/read.rs Outdated
Comment thread src/types.rs Fixed
Pr0methean added 7 commits May 3, 2026 17:03
Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
Comment thread src/read.rs Fixed
Comment thread src/types.rs Fixed
Comment thread src/types.rs Fixed
Comment thread src/types.rs Fixed
Comment thread src/types.rs Fixed
Comment thread src/write.rs Fixed
Comment thread src/write.rs Fixed
Comment thread src/write.rs Fixed
Comment thread src/write.rs Fixed
Comment thread src/write.rs Fixed
Pr0methean
Pr0methean previously approved these changes May 4, 2026
@Pr0methean Pr0methean enabled auto-merge May 4, 2026 00:20
@Pr0methean Pr0methean added this to the 9.0.0 milestone May 4, 2026
@Pr0methean Pr0methean changed the title refactor: only file name raw as key refactor: don't store converted filenames; convert on demand instead; and don't use Arc since it only deduplicates when copying to same path in another archive May 4, 2026
@Pr0methean Pr0methean added this pull request to the merge queue May 4, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 4, 2026
@Pr0methean Pr0methean added this pull request to the merge queue May 4, 2026
@Pr0methean Pr0methean removed this pull request from the merge queue due to a manual request May 4, 2026
@Pr0methean Pr0methean enabled auto-merge May 4, 2026 03:31
@Pr0methean Pr0methean added this pull request to the merge queue May 4, 2026
Merged via the queue into master with commit 695ff7f May 4, 2026
133 checks passed
@Pr0methean Pr0methean deleted the only-file-name-raw-as-key branch May 4, 2026 10:59
@Its-Just-Nans Its-Just-Nans self-assigned this May 5, 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.

3 participants