-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Regression in builtins.pathExists
#8838
Comments
Signed-off-by: lucasew <lucas59356@gmail.com>
From the linked commit I assume that this issue does not exist in 2.15.2? |
Yes. 2.13.x was the version I was using before I bumped nixpkgs yesterday and I tried pinning to 2.15.2 that also doesn't have the issue. |
Note that this only changed behavior when passing strings to This should definitely be fixed somehow. |
…sDir Fix #8838, pathExists: isDir when ends with `/ `
[Backport 2.17-maintenance] Fix #8838, pathExists: isDir when ends with `/ `
[Backport 2.16-maintenance] Fix #8838, pathExists: isDir when ends with `/ `
This issue was closed, but it is IMO still broken after #8869 because it only checks for trailing At this point it's probably better to focus on NixOS/nixpkgs#249165, but I thought it worth commenting here because Nix is the cause of the regression, not Nixpkgs. |
Describe the bug
After Nix 2.13.3 something happened and broke
builtins.pathExists
behaviour.Steps To Reproduce
touch /tmp/test
nix repl
builtins.pathExists /tmp/test/.
It will return
true
, should befalse
.Expected behavior
It should return false.
nix-env --version
outputnix-env (Nix) 2.17.0
Additional context
Nix 2.13.3 (tested on
/nix/store/nd8dpdgpjkh3g3vvcjx9qdw7mjzz0l90-nix-2.13.3/bin/nix
) doesn't have this issue.This bug breaks impure overlays in nixpkgs. Relevant part of the code: https://github.com/NixOS/nixpkgs/blob/d28fdbe9742c680ec410bd70bf2962b90a374d36/pkgs/top-level/impure.nix#L40C1-L41C1
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: