diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-07 04:06:03 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-07 00:43:51 -0700 |
commit | b14f88e0d46c61280a69da9559cf54cbce058eb5 (patch) | |
tree | 7b1c0be985b3f1aa7ae86ee1727d7a08c36c11a5 /tests | |
parent | 1342c8f18e48afd1577cfdc319c254ce7c42637e (diff) |
Merge pull request #9985 from alois31/symlink-resolution
Restore `builtins.pathExists` behavior on broken symlinks
(cherry picked from commit d53c8901ef7f2033855dd99063522e3d56a19dab)
===
note that this variant differs markedly from the source commit because
we haven't endured quite as much lazy trees.
Change-Id: I0facf282f21fe0db4134be5c65a8368c1b3a06fc
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functional/lang/eval-okay-pathexists.nix | 3 | ||||
l--------- | tests/functional/lang/symlink-resolution/broken | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/functional/lang/eval-okay-pathexists.nix b/tests/functional/lang/eval-okay-pathexists.nix index c5e7a62de..99253d764 100644 --- a/tests/functional/lang/eval-okay-pathexists.nix +++ b/tests/functional/lang/eval-okay-pathexists.nix @@ -27,3 +27,6 @@ builtins.pathExists (./lib.nix) && !builtins.pathExists (builtins.toPath (builtins.toString ./bla.nix)) && builtins.pathExists ./lib.nix && !builtins.pathExists ./bla.nix +&& builtins.pathExists ./symlink-resolution/foo/overlays/overlay.nix +&& builtins.pathExists ./symlink-resolution/broken +&& builtins.pathExists (builtins.toString ./symlink-resolution/foo/overlays + "/.") diff --git a/tests/functional/lang/symlink-resolution/broken b/tests/functional/lang/symlink-resolution/broken new file mode 120000 index 000000000..e07da690b --- /dev/null +++ b/tests/functional/lang/symlink-resolution/broken @@ -0,0 +1 @@ +nonexistent
\ No newline at end of file |