Skip to content

Stream tarball downloads to disk and add file-based unpack#114

Merged
ericmj merged 2 commits intomainfrom
ericmj/stream-downloads
Mar 9, 2026
Merged

Stream tarball downloads to disk and add file-based unpack#114
ericmj merged 2 commits intomainfrom
ericmj/stream-downloads

Conversation

@ericmj
Copy link
Member

@ericmj ericmj commented Mar 9, 2026

Use hex_core's new request_to_file to stream tarball downloads directly to disk via hackney instead of buffering in memory. Add TmpDir GenServer for process-based temp file cleanup.

ericmj added 2 commits March 9, 2026 23:23
Use hex_core's new request_to_file to stream tarball downloads
directly to disk via hackney instead of buffering in memory.
Add TmpDir GenServer for process-based temp file cleanup.
The hex_core config was hardcoded to default_config() which always
points to production repo.hex.pm. Read repo_url and repo_public_key
from application config so staging uses the correct repo and key.
@ericmj ericmj merged commit 58c787b into main Mar 9, 2026
8 checks passed
@ericmj ericmj deleted the ericmj/stream-downloads branch March 9, 2026 23:31
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