Skip to content

refactor(libstore): add HttpBinaryCacheStore::upload method#14421

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
lovesegfault:http-upload
Oct 30, 2025
Merged

refactor(libstore): add HttpBinaryCacheStore::upload method#14421
Ericson2314 merged 1 commit intoNixOS:masterfrom
lovesegfault:http-upload

Conversation

@lovesegfault
Copy link
Member

Motivation

Introduce protected upload method overloads in HttpBinaryCacheStore
that handle the actual upload after compression has been applied. This
separates compression concerns (in upsertFile) from upload mechanics
(in upload).

Two overloads are provided:

  1. upload(path, RestartableSource &, sizeHint, mimeType, contentEncoding)
  2. upload(path, CompressedSource &, mimeType)

Context

Part-Of: #14330
Depends-On: #14420


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@github-actions github-actions bot added the store Issues and pull requests concerning the Nix store label Oct 30, 2025
@lovesegfault lovesegfault force-pushed the http-upload branch 2 times, most recently from ad46b1a to 1cfef61 Compare October 30, 2025 03:53
Introduce protected `upload` method overloads in `HttpBinaryCacheStore`
that handle the actual upload after compression has been applied. This
separates compression concerns (in `upsertFile`) from upload mechanics
(in `upload`).

Two overloads are provided:

1. `upload(path, RestartableSource &, sizeHint, mimeType, contentEncoding)`
2. `upload(path, CompressedSource &, mimeType)`
@dpulls
Copy link

dpulls bot commented Oct 30, 2025

🎉 All dependencies have been resolved !

@Ericson2314 Ericson2314 added this pull request to the merge queue Oct 30, 2025
Merged via the queue into NixOS:master with commit 49084a7 Oct 30, 2025
17 checks passed
@lovesegfault lovesegfault deleted the http-upload branch October 30, 2025 19:04
@edolstra edolstra mentioned this pull request Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

store Issues and pull requests concerning the Nix store

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants