mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
findAlongAttrPath(): Return position
(cherry picked from commit 0b013a54dc
)
This commit is contained in:
parent
1eb952d27a
commit
c1ca4f0acc
8 changed files with 14 additions and 11 deletions
|
@ -120,7 +120,7 @@ static int _main(int argc, char * * argv)
|
|||
Path path = resolveExprPath(lookupFileArg(*state, args.empty() ? "." : args[0]));
|
||||
Value vRoot;
|
||||
state->evalFile(path, vRoot);
|
||||
Value & v(*findAlongAttrPath(*state, attrPath, autoArgs, vRoot));
|
||||
Value & v(*findAlongAttrPath(*state, attrPath, autoArgs, vRoot).first);
|
||||
state->forceAttrs(v);
|
||||
|
||||
/* Extract the URI. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue