mirror of
https://github.com/NixOS/nix
synced 2025-06-30 15:48:00 +02:00
Sign locally-built paths
Locally-built paths are now signed automatically using the secret keys specified by the ‘secret-key-files’ option.
This commit is contained in:
parent
dc82160164
commit
e39999ed48
3 changed files with 24 additions and 1 deletions
|
@ -2748,6 +2748,7 @@ void DerivationGoal::registerOutputs()
|
|||
trusted. */
|
||||
if (!info.ultimate) {
|
||||
info.ultimate = true;
|
||||
worker.store.signPathInfo(info);
|
||||
worker.store.registerValidPaths({info});
|
||||
}
|
||||
|
||||
|
@ -2808,6 +2809,8 @@ void DerivationGoal::registerOutputs()
|
|||
info.references = references;
|
||||
info.deriver = drvPath;
|
||||
info.ultimate = true;
|
||||
worker.store.signPathInfo(info);
|
||||
|
||||
infos.push_back(info);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue