aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build/derivation-goal.cc
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2021-01-26 09:35:10 +0100
committerregnat <rg@regnat.ovh>2021-02-23 08:04:03 +0100
commit8c385d16eeeb26a912d213c5689d9f9a78020bc7 (patch)
tree8c8995216c5ec77c88b8c0026ded3ca066dfa3cb /src/libstore/build/derivation-goal.cc
parent27b5747ca7b5599768083dde5fa4d36bfbb0f66f (diff)
Also send ca outputs to the build hook
Otherwise they don't get registered, triggering an assertion failure at some point later
Diffstat (limited to 'src/libstore/build/derivation-goal.cc')
-rw-r--r--src/libstore/build/derivation-goal.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/build/derivation-goal.cc b/src/libstore/build/derivation-goal.cc
index b074410b0..096f24029 100644
--- a/src/libstore/build/derivation-goal.cc
+++ b/src/libstore/build/derivation-goal.cc
@@ -1161,8 +1161,8 @@ HookReply DerivationGoal::tryBuildHook()
{
StringSet missingOutputs;
for (auto & [outputName, status] : initialOutputs) {
- if (!status.known) continue;
- if (buildMode != bmCheck && status.known->isValid()) continue;
+ // XXX: Does this include known CA outputs?
+ if (buildMode != bmCheck && status.known && status.known->isValid()) continue;
missingOutputs.insert(outputName);
/* missingPaths.insert(status.known->path); */
}