Skip to content

Allow explicit recovery after ZIP member errors - #59

Merged
andrew merged 2 commits into
mainfrom
fix/zip-member-recovery
Oct 21, 2026
Merged

andrew merged 2 commits into
mainfrom
fix/zip-member-recovery

Conversation

@andrew

@andrew andrew commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Add Stream.Recover so callers can continue after a failed ZIP member. It closes the failed reader and uses the central directory to locate the next entry. Reading or skipping a member still stops at the original error until recovery is requested.

Cancellation and resource-limit errors remain terminal. Other archive formats return errors.ErrUnsupported, since their next member may depend on successfully reading the damaged body.

Copilot AI balanced review requested due to automatic review settings October 21, 2026 09:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@andrew
andrew added this pull request to stack #60 October 21, 2026 09:42
Base automatically changed from fix/zip-stream-open-eof to main October 21, 2026 09:45
@andrew
andrew force-pushed the fix/zip-member-recovery branch from 605cfb2 to 7595fab Compare October 21, 2026 09:45
@andrew
andrew merged commit f5f6f3f into main Oct 21, 2026
6 checks passed
@andrew
andrew deleted the fix/zip-member-recovery branch October 21, 2026 09:54
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