mirror of
https://github.com/NixOS/nix
synced 2025-07-07 14:21:48 +02:00
Fix decoding virtual paths that are at the root of the tree
This commit is contained in:
parent
b27cd882ac
commit
515b908690
2 changed files with 4 additions and 3 deletions
|
@ -4,3 +4,5 @@ mkdir -p $TEST_ROOT/foo
|
|||
echo bla > $TEST_ROOT/foo/bar
|
||||
|
||||
[[ $(nix eval --raw --impure --expr "builtins.readFile (builtins.toString (builtins.fetchTree { type = \"path\"; path = \"$TEST_ROOT/foo\"; } + \"bar\"))") = bla ]]
|
||||
|
||||
[[ $(nix eval --json --impure --expr "builtins.readDir (builtins.toString (builtins.fetchTree { type = \"path\"; path = \"$TEST_ROOT/foo\"; }))") = '{"bar":"regular"}' ]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue