diff options
author | Robert Hensing <robert@roberthensing.nl> | 2023-08-25 17:18:37 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2023-08-25 17:18:37 +0200 |
commit | 1e08e12d8138b09e6872cb498b723ade9ad71d68 (patch) | |
tree | a8409afe647d2165a66321d08bbe97d4c947cb74 /tests | |
parent | d2e6cfa0750cb38ceef7dc0b8bb31cf3b0387e9c (diff) |
pathExists: isDir when endswith /
Fixes https://github.com/NixOS/nix/issues/8838
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lang/eval-okay-pathexists.nix | 1 |
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 |