From c6e1981fa23b96e41b794260476427239150bb27 Mon Sep 17 00:00:00 2001 From: Ameer Taweel Date: Tue, 28 Apr 2026 00:59:06 +0300 Subject: [PATCH] lib/filesystem: remove absolute path literals --- lib/filesystem.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/filesystem.nix b/lib/filesystem.nix index 27f3ab1c5ce1..5e31e8e2311c 100644 --- a/lib/filesystem.nix +++ b/lib/filesystem.nix @@ -201,7 +201,7 @@ in in if builtins.length matches != 0 then { inherit path matches; } - else if path == /. then + else if toString path == "/" then null else go (dirOf path); @@ -211,7 +211,7 @@ in base = baseNameOf file; type = (builtins.readDir parent).${base} or null; in - file == /. || type == "directory"; + toString file == "/" || type == "directory"; in go (if isDir then file else parent);