Skip to content

Don't write the central directory twice when rolling back a cancelled addition - #445

Merged
weichsel merged 1 commit into
mainfrom
fix/rollback-duplicate-central-directory
Nov 20, 2026
Merged

weichsel merged 1 commit into
mainfrom
fix/rollback-duplicate-central-directory

Conversation

@weichsel

Copy link
Copy Markdown
Owner

Cancelling addEntry restored the central directory and then wrote it a second time, leaving a duplicated directory in the archive.

  • Removes the duplicate write in rollback
  • The add cancellation tests now check that the archive is byte-identical afterwards

… addition

Cancelling addEntry restored the central directory and then wrote it a
second time. The cancellation tests now check that the archive is
unchanged.
@weichsel
weichsel merged commit 3e67a18 into main Nov 20, 2026
13 checks passed
@weichsel
weichsel deleted the fix/rollback-duplicate-central-directory branch November 20, 2026 06:36
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