Describe the bug
On master, builtins.pathExists returns false for an existing symlink that points to a non-existent path.
This is a regression, as Nix 2.18.1 returns true.
Steps To Reproduce
$ ln -s does-not-exist symlink
$ nix-instantiate --eval -E 'builtins.pathExists ./symlink'
false
Expected behavior
The same as Nix 2.18.1, which is true
nix-env --version output
nix-env (Nix) 2.21.0pre20240201_ef6d055
Additional context
This was found from the lib.fileset test suite in Nixpkgs failing in a PR (NixOS/nixpkgs#285264), after which @roberth opened #9900.
This may relate to previous regressions:
This issue is sponsored by Antithesis ✨
Priorities
Add 👍 to issues you find important.
Describe the bug
On master,
builtins.pathExistsreturnsfalsefor an existing symlink that points to a non-existent path.This is a regression, as Nix 2.18.1 returns
true.Steps To Reproduce
Expected behavior
The same as Nix 2.18.1, which is
truenix-env --versionoutputnix-env (Nix) 2.21.0pre20240201_ef6d055
Additional context
This was found from the
lib.filesettest suite in Nixpkgs failing in a PR (NixOS/nixpkgs#285264), after which @roberth opened #9900.This may relate to previous regressions:
builtins.pathExists#8838This issue is sponsored by Antithesis ✨
Priorities
Add 👍 to issues you find important.