aboutsummaryrefslogtreecommitdiff
path: root/tests/lang/eval-okay-pathexists.nix
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2023-08-25 17:18:37 +0200
committerRobert Hensing <robert@roberthensing.nl>2023-08-25 17:18:37 +0200
commit1e08e12d8138b09e6872cb498b723ade9ad71d68 (patch)
treea8409afe647d2165a66321d08bbe97d4c947cb74 /tests/lang/eval-okay-pathexists.nix
parentd2e6cfa0750cb38ceef7dc0b8bb31cf3b0387e9c (diff)
pathExists: isDir when endswith /
Fixes https://github.com/NixOS/nix/issues/8838
Diffstat (limited to 'tests/lang/eval-okay-pathexists.nix')
-rw-r--r--tests/lang/eval-okay-pathexists.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-pathexists.nix b/tests/lang/eval-okay-pathexists.nix
index 8eae37e70..e1246e370 100644
--- a/tests/lang/eval-okay-pathexists.nix
+++ b/tests/lang/eval-okay-pathexists.nix
@@ -1,6 +1,7 @@
builtins.pathExists (./lib.nix)
&& builtins.pathExists (builtins.toPath ./lib.nix)
&& builtins.pathExists (builtins.toString ./lib.nix)
+&& !builtins.pathExists (builtins.toString ./lib.nix + "/")
&& builtins.pathExists (builtins.toPath (builtins.toString ./lib.nix))
&& !builtins.pathExists (builtins.toPath (builtins.toString ./bla.nix))
&& builtins.pathExists ./lib.nix