aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build/local-derivation-goal.cc
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2021-03-08 17:32:20 +0100
committerregnat <rg@regnat.ovh>2021-03-15 16:35:17 +0100
commit703c98c6cb922ff9d8cd8cb2c1104e0d3b15b803 (patch)
tree3daf6aa9e2876d32c895b505a3d283eadd40972e /src/libstore/build/local-derivation-goal.cc
parent54ced9072b94515a756e1e8e76c92a42f0ccf366 (diff)
Properly sign the unresolved drvs
Don't let them inherit the signature from the parent one (because it makes no sense to do so), but re-sign them after they have been built
Diffstat (limited to 'src/libstore/build/local-derivation-goal.cc')
-rw-r--r--src/libstore/build/local-derivation-goal.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libstore/build/local-derivation-goal.cc b/src/libstore/build/local-derivation-goal.cc
index 048135ccf..2966bb565 100644
--- a/src/libstore/build/local-derivation-goal.cc
+++ b/src/libstore/build/local-derivation-goal.cc
@@ -2620,12 +2620,17 @@ void LocalDerivationGoal::registerOutputs()
.id = DrvOutput{initialOutputs.at(outputName).outputHash,
outputName},
.outPath = newInfo.path};
- getLocalStore().signRealisation(thisRealisation);
+ signRealisation(thisRealisation);
worker.store.registerDrvOutput(thisRealisation);
}
}
}
+void LocalDerivationGoal::signRealisation(Realisation & realisation)
+{
+ getLocalStore().signRealisation(realisation);
+}
+
void LocalDerivationGoal::checkOutputs(const std::map<Path, ValidPathInfo> & outputs)
{