aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval-cache.cc
diff options
context:
space:
mode:
authorKevin Amado <kamadorueda@gmail.com>2022-01-21 10:43:16 -0500
committerKevin Amado <kamadorueda@gmail.com>2022-01-21 16:32:43 -0500
commitc3896e19d0001b4f729017aa96d0a44b6e479a52 (patch)
treef41be33aff11261bbb4f02ece3241cac102c4a34 /src/libexpr/eval-cache.cc
parent1472e045a757af4e289801673b456b78ebf18933 (diff)
forceAttrs: make pos mandatory
Diffstat (limited to 'src/libexpr/eval-cache.cc')
-rw-r--r--src/libexpr/eval-cache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval-cache.cc b/src/libexpr/eval-cache.cc
index a92acafa8..222a34116 100644
--- a/src/libexpr/eval-cache.cc
+++ b/src/libexpr/eval-cache.cc
@@ -336,7 +336,7 @@ Value & AttrCursor::getValue()
if (!_value) {
if (parent) {
auto & vParent = parent->first->getValue();
- root->state.forceAttrs(vParent);
+ root->state.forceAttrs(vParent, vParent.determinePos(noPos));
auto attr = vParent.attrs->get(parent->second);
if (!attr)
throw Error("attribute '%s' is unexpectedly missing", getAttrPathStr());