aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/installables.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-02-04 00:31:33 +0100
committerEelco Dolstra <edolstra@gmail.com>2022-02-04 00:33:21 +0100
commitbd383d1b6f91c4fe7ac21c52771e92027f649fa0 (patch)
tree6845b5d2f709df2cbf06bca8de67cdab075902d2 /src/libcmd/installables.cc
parent4c755c3b3fc427afe192d223b37c288c88cc57d5 (diff)
Make most calls to determinePos() lazy
Diffstat (limited to 'src/libcmd/installables.cc')
-rw-r--r--src/libcmd/installables.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcmd/installables.cc b/src/libcmd/installables.cc
index ec4f8f6f9..38a177f80 100644
--- a/src/libcmd/installables.cc
+++ b/src/libcmd/installables.cc
@@ -497,7 +497,7 @@ Value * InstallableFlake::getFlakeOutputs(EvalState & state, const flake::Locked
auto aOutputs = vFlake->attrs->get(state.symbols.create("outputs"));
assert(aOutputs);
- state.forceValue(*aOutputs->value, aOutputs->value->determinePos(noPos));
+ state.forceValue(*aOutputs->value, [&]() { return aOutputs->value->determinePos(noPos); });
return aOutputs->value;
}