mirror of
https://github.com/NixOS/nix.git
synced 2025-11-24 03:09:35 +01:00
Remove signRealisation from drv goal
We can move this method from `LocalStore` to `Store` --- even if we only want the actual builder to sign things in many cases, there is no reason to try to enforce this policy by spurious moving the method to a subclass. Now, we might technically sign class, but CA derivations is experimental, and @Ericson2314 is going to revisit all this stuff with issue #11896 anyways.
This commit is contained in:
parent
0e7e1f5b57
commit
db8439c328
8 changed files with 17 additions and 28 deletions
|
|
@ -1047,7 +1047,7 @@ Goal::Co DerivationGoal::resolvedFinished()
|
|||
: worker.store;
|
||||
newRealisation.dependentRealisations = drvOutputReferences(worker.store, *drv, realisation.outPath, &drvStore);
|
||||
}
|
||||
signRealisation(newRealisation);
|
||||
worker.store.signRealisation(newRealisation);
|
||||
worker.store.registerDrvOutput(newRealisation);
|
||||
}
|
||||
outputPaths.insert(realisation.outPath);
|
||||
|
|
|
|||
|
|
@ -267,11 +267,6 @@ struct DerivationGoal : public Goal
|
|||
*/
|
||||
Path openLogFile();
|
||||
|
||||
/**
|
||||
* Sign the newly built realisation if the store allows it
|
||||
*/
|
||||
virtual void signRealisation(Realisation&) {}
|
||||
|
||||
/**
|
||||
* Close the log file.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue