aboutsummaryrefslogtreecommitdiff
path: root/src/nix-instantiate
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/nix-instantiate
parent4c755c3b3fc427afe192d223b37c288c88cc57d5 (diff)
Make most calls to determinePos() lazy
Diffstat (limited to 'src/nix-instantiate')
-rw-r--r--src/nix-instantiate/nix-instantiate.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-instantiate/nix-instantiate.cc b/src/nix-instantiate/nix-instantiate.cc
index 8836f810c..a08683be1 100644
--- a/src/nix-instantiate/nix-instantiate.cc
+++ b/src/nix-instantiate/nix-instantiate.cc
@@ -40,7 +40,7 @@ void processExpr(EvalState & state, const Strings & attrPaths,
for (auto & i : attrPaths) {
Value & v(*findAlongAttrPath(state, i, autoArgs, vRoot).first);
- state.forceValue(v, v.determinePos(noPos));
+ state.forceValue(v, [&]() { return v.determinePos(noPos); });
PathSet context;
if (evalOnly) {