Skip to content

Stream self-update artifact downloads during update#708

Merged
ryanfowler merged 1 commit into
mainfrom
stream-selfupdate-downloads
Jun 3, 2026
Merged

Stream self-update artifact downloads during update#708
ryanfowler merged 1 commit into
mainfrom
stream-selfupdate-downloads

Conversation

@ryanfowler

Copy link
Copy Markdown
Owner

Summary

  • Stream self-update artifacts instead of buffering the full archive in memory.
  • Hash release assets on the fly before comparing against the published SHA-256.
  • Use direct streaming extraction for .tar.gz/.tgz assets and a temp file for .zip assets, which still need seekable input.
  • Update the repo notes to reflect the new self-update behavior.

Testing

  • Added unit tests covering streamed tar.gz extraction, streamed zip staging, checksum verification, and size-limit handling.
  • cargo fmt
  • cargo clippy --locked --all-targets --all-features -- -D warnings
  • cargo test --all-features

@ryanfowler ryanfowler merged commit 9931eaa into main Jun 3, 2026
4 checks passed
@ryanfowler ryanfowler deleted the stream-selfupdate-downloads branch June 3, 2026 11:14
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