mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
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
This commit is contained in:
parent
8dbd015500
commit
ddddd780e0
1 changed files with 1 additions and 1 deletions
|
@ -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) (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue