Skip to content

libstore: convert more Path to std::filesystem::path#15339

Merged
Ericson2314 merged 3 commits intoNixOS:masterfrom
obsidiansystems:convert-some-more-path
Feb 25, 2026
Merged

libstore: convert more Path to std::filesystem::path#15339
Ericson2314 merged 3 commits intoNixOS:masterfrom
obsidiansystems:convert-some-more-path

Conversation

@amaanq
Copy link
Member

@amaanq amaanq commented Feb 25, 2026

Motivation

This commit converts local filesystem paths throughout libstore from the string-based Path typedef to std::filesystem::path.


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 new-cli Relating to the "nix" command with-tests Issues related to testing. PRs with tests have some priority store Issues and pull requests concerning the Nix store repl The Read Eval Print Loop, "nix repl" command and debugger c api Nix as a C library with a stable interface labels Feb 25, 2026
std::stringstream ss(config.secretKeyFiles);
Path keyPath;
std::string keyPath;
while (std::getline(ss, keyPath, ',')) {
Copy link
Member

Choose a reason for hiding this comment

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

@xokdvium we should probably replace with one our split/tokenize functions?

@amaanq amaanq force-pushed the convert-some-more-path branch from a07e267 to b43bcf4 Compare February 25, 2026 19:59
@amaanq amaanq force-pushed the convert-some-more-path branch from b43bcf4 to 5ff6d2d Compare February 25, 2026 21:03
@github-actions github-actions bot added the fetching Networking with the outside (non-Nix) world, input locking label Feb 25, 2026
@amaanq amaanq force-pushed the convert-some-more-path branch from 5ff6d2d to 5e2124a Compare February 25, 2026 21:11
@amaanq amaanq force-pushed the convert-some-more-path branch 2 times, most recently from 9717f94 to 37b33f1 Compare February 25, 2026 21:24
This commit converts local filesystem paths throughout libstore from the
string-based `Path` typedef to `std::filesystem::path`.
@amaanq amaanq force-pushed the convert-some-more-path branch from 37b33f1 to d4b9a81 Compare February 25, 2026 21:26
@Ericson2314 Ericson2314 added this pull request to the merge queue Feb 25, 2026
Merged via the queue into NixOS:master with commit ae33d09 Feb 25, 2026
15 checks passed
@Ericson2314 Ericson2314 deleted the convert-some-more-path branch February 25, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c api Nix as a C library with a stable interface fetching Networking with the outside (non-Nix) world, input locking new-cli Relating to the "nix" command repl The Read Eval Print Loop, "nix repl" command and debugger store Issues and pull requests concerning the Nix store with-tests Issues related to testing. PRs with tests have some priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants