diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-12-09 12:40:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-09 12:40:00 +0100 |
commit | 253571e4ecc990c7f63ed8d70dbee9e4cec8002c (patch) | |
tree | 69b3a119773dd20b2ba239eb2160c76251f09375 /src/libstore/build/derivation-goal.cc | |
parent | eb458ad1b2d5ef316fe8948d4e1abd484dde41eb (diff) | |
parent | c87267c2a4621a42d6bfcdb7944cd546f194787a (diff) |
Merge pull request #4342 from tweag/fix-remote-build-hook
fix remote build hook
Diffstat (limited to 'src/libstore/build/derivation-goal.cc')
-rw-r--r-- | src/libstore/build/derivation-goal.cc | 8 |
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; } |