aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-10-07 13:15:01 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-10-07 13:15:01 +0200
commit7c5056878818e67f5b64c903c43d06847acfe315 (patch)
treee896ae2aca4984b28e7f53ea787cd0de4534f4cf /src
parent302c3a052a98a3350980825500d31508ac180b40 (diff)
Remove unnecessary call to queryMissing()
Worker::run() already does this.
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/primops.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 1b79785ff..77b27799f 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -56,13 +56,9 @@ void EvalState::realiseContext(const PathSet & context)
"cannot build '%1%' during evaluation because the option 'allow-import-from-derivation' is disabled",
store->printStorePath(drvs.begin()->drvPath));
- /* For performance, prefetch all substitute info. */
- StorePathSet willBuild, willSubstitute, unknown;
- uint64_t downloadSize, narSize;
+ /* Build/substitute the context. */
std::vector<DerivedPath> buildReqs;
for (auto & d : drvs) buildReqs.emplace_back(DerivedPath { d });
- store->queryMissing(buildReqs, willBuild, willSubstitute, unknown, downloadSize, narSize);
-
store->buildPaths(buildReqs);
/* Add the output of this derivations to the allowed