From 65bf71bb6ef05ce684924a1dc248bb2e8e2869fb Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 1 Feb 2025 21:51:54 +0100 Subject: fix(by-name-overlay): Correctly display the `rawPath` in warnings Without the `builtins.toString` nix will just copy the path to the store and return that. With the `builtins.toString` it actually prints the real path. --- by-name-overlay.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/by-name-overlay.nix b/by-name-overlay.nix index 4253aa4..2d03e75 100644 --- a/by-name-overlay.nix +++ b/by-name-overlay.nix @@ -109,7 +109,7 @@ assert fileRegex == null -> fileName != null; let # The `namesForShard` function should have already printed a warning. [null] else if (builtins.attrValues paths) == [] - then warn "'${fileDisplay}' did not match anything in ${rawPath}. Skipped" [null] + then warn "'${fileDisplay}' did not match anything in ${builtins.toString rawPath}. Skipped" [null] else mapAttrsToList checkPath paths; filterNull = list: builtins.filter (value: value != null) list; -- cgit 1.4.1