Skip to content

libstore: add HttpBinaryCacheStoreConfig constructor that takes a ParsedURL#15209

Merged
xokdvium merged 1 commit intoNixOS:masterfrom
obsidiansystems:http-store-port-ctor
Feb 12, 2026
Merged

libstore: add HttpBinaryCacheStoreConfig constructor that takes a ParsedURL#15209
xokdvium merged 1 commit intoNixOS:masterfrom
obsidiansystems:http-store-port-ctor

Conversation

@amaanq
Copy link
Member

@amaanq amaanq commented Feb 12, 2026

Motivation

In the https-store tests, a TestHttpBinaryCacheStoreConfig is constructed with a call to format to create the cache uri. This commit adds a constructor to HttpBinaryCacheStoreConfig to remove the need for this call, and updates the test type to leverage this so we're no longer manually calling fmt on a string to format the port.


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 Feb 12, 2026
@amaanq amaanq force-pushed the http-store-port-ctor branch from ed14eaa to 97fc235 Compare February 12, 2026 14:46
@amaanq amaanq changed the title libstore: add HttpBinaryCacheStoreConfig constructor that takes the host and port separately libstore: add host and port constructors to store configs Feb 12, 2026
@amaanq amaanq force-pushed the http-store-port-ctor branch from 97fc235 to 648d835 Compare February 12, 2026 15:04
@amaanq amaanq force-pushed the http-store-port-ctor branch from 648d835 to c7e94f1 Compare February 12, 2026 16:05
@amaanq amaanq changed the title libstore: add host and port constructors to store configs libstore: add HttpBinaryCacheStoreConfig constructor that takes a ParsedURL Feb 12, 2026
@amaanq amaanq changed the title libstore: add HttpBinaryCacheStoreConfig constructor that takes a ParsedURL libstore: add HttpBinaryCacheStoreConfig constructor that takes a ParsedURL Feb 12, 2026
Copy link
Member

@Ericson2314 Ericson2314 left a comment

Choose a reason for hiding this comment

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

Approving, but holding off merging because @xokdvium asked me too on an earlier version of this.

…ParsedURL`

In the https-store tests, a `TestHttpBinaryCacheStoreConfig` is constructed with a call to format to create the cache uri. This commit adds a constructor to `HttpBinaryCacheStoreConfig` to remove the need for this call, and updates the test type to leverage this so we're no longer manually calling fmt on a string to format the port.
@amaanq amaanq force-pushed the http-store-port-ctor branch from c7e94f1 to 52b1906 Compare February 12, 2026 16:22
@xokdvium xokdvium added this pull request to the merge queue Feb 12, 2026
Merged via the queue into NixOS:master with commit f3f9eac Feb 12, 2026
14 checks passed
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.

3 participants