aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-10-17 19:50:21 +0200
committerGitHub <noreply@github.com>2021-10-17 19:50:21 +0200
commit97b49041363b4689d3faf7b7bb4e2f64bd7b0584 (patch)
treee77fdb4bb42c3b21843de50ca3240246c68bc7f6
parent130284b8508dad3c70e8160b15f3d62042fc730a (diff)
parente5a27a3b4e5ae6a1b84e439f880613e6fe5faf98 (diff)
Merge pull request #5396 from kamadorueda/master
fetchTree: add pos to EvalState::forceValue
-rw-r--r--src/libexpr/primops/fetchTree.cc4
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,