Skip to content

Commit c76112e

Browse files
stasjokMattSturgeon
authored andcommitted
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
1 parent 6926643 commit c76112e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/fetch-tests.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ let
3232
handleEntry =
3333
name: type:
3434
let
35-
file = "${path}/${name}";
35+
file = /${path}/${name};
3636
in
3737
if type == "regular" then
3838
lib.optional (lib.hasSuffix ".nix" name) (

0 commit comments

Comments
 (0)