Skip to content

Truncate replaced module proxy archives - #1801

Closed
dajiaohuang wants to merge 1 commit into
dominikh:masterfrom
dajiaohuang:fix/proxydir-zip-truncate
Closed

dajiaohuang wants to merge 1 commit into
dominikh:masterfrom
dajiaohuang:fix/proxydir-zip-truncate

Conversation

@dajiaohuang

Copy link
Copy Markdown

WriteModuleVersion rewrites version archives, but opening an existing zip without O_TRUNC leaves stale trailing bytes. Rewriting a version with a shorter archive then produces an unreadable zip. Truncate the old archive and add a regression that rewrites a version with shorter contents.

@dajiaohuang dajiaohuang closed this Oct 8, 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