aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-12-09 12:40:00 +0100
committerGitHub <noreply@github.com>2020-12-09 12:40:00 +0100
commit253571e4ecc990c7f63ed8d70dbee9e4cec8002c (patch)
tree69b3a119773dd20b2ba239eb2160c76251f09375 /src
parenteb458ad1b2d5ef316fe8948d4e1abd484dde41eb (diff)
parentc87267c2a4621a42d6bfcdb7944cd546f194787a (diff)
Merge pull request #4342 from tweag/fix-remote-build-hook
fix remote build hook
Diffstat (limited to 'src')
-rw-r--r--src/libstore/build/derivation-goal.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstore/build/derivation-goal.cc b/src/libstore/build/derivation-goal.cc
index fdf777c27..de58d9f06 100644
--- a/src/libstore/build/derivation-goal.cc
+++ b/src/libstore/build/derivation-goal.cc
@@ -899,10 +899,8 @@ void DerivationGoal::buildDone()
Logger::Fields{worker.store.printStorePath(drvPath)});
PushActivity pact(act.id);
StorePathSet outputPaths;
- for (auto& [_, maybeOutPath] :
- worker.store.queryPartialDerivationOutputMap(drvPath)) {
- if (maybeOutPath)
- outputPaths.insert(*maybeOutPath);
+ for (auto i : drv->outputs) {
+ outputPaths.insert(finalOutputs.at(i.first));
}
std::map<std::string, std::string> hookEnvironment = getEnv();
@@ -2874,6 +2872,8 @@ void DerivationGoal::registerOutputs()
for (auto & i : drv->outputsAndOptPaths(worker.store)) {
if (!i.second.second || !worker.store.isValidPath(*i.second.second))
allValid = false;
+ else
+ finalOutputs.insert_or_assign(i.first, *i.second.second);
}
if (allValid) return;
}