mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-13 01:36:15 +02:00
Merge pull request #4326 from tweag/fix-post-build-hook-and-remote-builders
Re-query for the derivation outputs in the post-build-hook
This commit is contained in:
commit
500161b970
1 changed files with 4 additions and 2 deletions
|
@ -899,8 +899,10 @@ void DerivationGoal::buildDone()
|
||||||
Logger::Fields{worker.store.printStorePath(drvPath)});
|
Logger::Fields{worker.store.printStorePath(drvPath)});
|
||||||
PushActivity pact(act.id);
|
PushActivity pact(act.id);
|
||||||
StorePathSet outputPaths;
|
StorePathSet outputPaths;
|
||||||
for (auto i : drv->outputs) {
|
for (auto& [_, maybeOutPath] :
|
||||||
outputPaths.insert(finalOutputs.at(i.first));
|
worker.store.queryPartialDerivationOutputMap(drvPath)) {
|
||||||
|
if (maybeOutPath)
|
||||||
|
outputPaths.insert(*maybeOutPath);
|
||||||
}
|
}
|
||||||
std::map<std::string, std::string> hookEnvironment = getEnv();
|
std::map<std::string, std::string> hookEnvironment = getEnv();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue