diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-10-17 19:50:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-17 19:50:21 +0200 |
commit | 97b49041363b4689d3faf7b7bb4e2f64bd7b0584 (patch) | |
tree | e77fdb4bb42c3b21843de50ca3240246c68bc7f6 | |
parent | 130284b8508dad3c70e8160b15f3d62042fc730a (diff) | |
parent | e5a27a3b4e5ae6a1b84e439f880613e6fe5faf98 (diff) |
Merge pull request #5396 from kamadorueda/master
fetchTree: add pos to EvalState::forceValue
-rw-r--r-- | src/libexpr/primops/fetchTree.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/primops/fetchTree.cc b/src/libexpr/primops/fetchTree.cc index f570f19ae..727b661e1 100644 --- a/src/libexpr/primops/fetchTree.cc +++ b/src/libexpr/primops/fetchTree.cc @@ -97,7 +97,7 @@ static void fetchTree( fetchers::Input input; PathSet context; - state.forceValue(*args[0]); + state.forceValue(*args[0], pos); if (args[0]->type() == nAttrs) { state.forceAttrs(*args[0], pos); @@ -121,7 +121,7 @@ static void fetchTree( for (auto & attr : *args[0]->attrs) { if (attr.name == state.sType) continue; - state.forceValue(*attr.value); + state.forceValue(*attr.value, *attr.pos); if (attr.value->type() == nPath || attr.value->type() == nString) { auto s = state.coerceToString(*attr.pos, *attr.value, context, false, false); attrs.emplace(attr.name, |