-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
builtins.pathExists
returns false on symlinks that point to non-existent paths
#9901
Labels
Comments
3 tasks
Merged
13 tasks
@edolstra what are your thoughts on this? |
#9985 fixes this |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/tweag-nix-dev-update-54/39990/1 |
srid
added a commit
to srid/nixos-config
that referenced
this issue
Mar 26, 2024
Because it broke colmena, zhaofengli/colmena#190 Ref: - NixOS/nix#9497 - NixOS/nix#9901 - NixOS/nix#9985
huang12zheng
pushed a commit
to huang12zheng/nixos-config
that referenced
this issue
Dec 5, 2024
Because it broke colmena, zhaofengli/colmena#190 Ref: - NixOS/nix#9497 - NixOS/nix#9901 - NixOS/nix#9985
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
On master,
builtins.pathExists
returnsfalse
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
Expected behavior
The same as Nix 2.18.1, which is
true
nix-env --version
outputnix-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:
builtins.pathExists
#8838This issue is sponsored by Antithesis ✨
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: