NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
11.47k stars 1.44k forks source link

Replace call to `stat`, `lstat`, and `maybeLstat` with appropriate functions from `std::filesystem` #10937

Open siddhantk232 opened 2 weeks ago

siddhantk232 commented 2 weeks ago

Motivation

The cpp std::filesystem has functions that we can use in place of stat and lstat. This makes the code more portable between windows and unix.

Some places where it required windows native implementation are still using unix::lstat (the old lstat just moved inside the new unix namespace). Alternative windows implementation needs to be written to tackle these situations.

Context

Priorities and Process

Add :+1: to pull requests you find important.

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

nixos-discourse commented 6 days ago

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2024-06-24-nix-team-meeting-minutes-155/47739/1