From ddddd780e0ba901cd990de2401348f95f706f762 Mon Sep 17 00:00:00 2001 From: Stanislav Asunkin <1353637+stasjok@users.noreply.github.com> Date: Sat, 10 May 2025 22:07:02 +0300 Subject: [PATCH] tests/fetch-tests: avoid unnecessary copy-to-store Previously path was concatenated using string interpolation. This commit switches from string interpolation to path interpolation. The problem is nix will copy the "${directory}" to a new store object, meaning anything outside its root won't be available. From the nix manual: > A path in an interpolated expression is first copied into the Nix > store, and the resulting string is the store path of the newly created > store object. https://nix.dev/manual/nix/2.28/language/string-interpolation#interpolated-expression --- tests/fetch-tests.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fetch-tests.nix b/tests/fetch-tests.nix index e6805b44..4160247f 100644 --- a/tests/fetch-tests.nix +++ b/tests/fetch-tests.nix @@ -32,7 +32,7 @@ let handleEntry = name: type: let - file = "${path}/${name}"; + file = /${path}/${name}; in if type == "regular" then lib.optional (lib.hasSuffix ".nix" name) (