Skip to content

Conversation

@vinayakankugoyal
Copy link
Contributor

Motivation

Replace Path with std::filesystem::path in libfetchers.

Context

#9205


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 store Issues and pull requests concerning the Nix store fetching Networking with the outside (non-Nix) world, input locking c api Nix as a C library with a stable interface labels Nov 26, 2025
@Ericson2314
Copy link
Member

       > ../globals.cc:489:9: error: no matching function for call to 'hasPrefix'
       >   489 |     if (hasPrefix(defaultTempDir(), "/var/folders/"))
       >       |         ^~~~~~~~~

Can do a bit nicer with https://en.cppreference.com/w/cpp/filesystem/path/lexically_normal

@Ericson2314
Copy link
Member

@xokdvium let me know if you think my makeFSSourceAccessor suggestions are too much for now because potential symlink issues.

@Ericson2314 Ericson2314 added this pull request to the merge queue Nov 26, 2025
Merged via the queue into NixOS:master with commit 3c2d5a1 Nov 26, 2025
16 checks passed
@xokdvium xokdvium mentioned this pull request Nov 26, 2025
2 tasks
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 store Issues and pull requests concerning the Nix store

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants