hydra-queue-runner: Write GC roots for outputs paths
We lost this behaviour somewhere. So build outputs could be GC'ed when running the collector with --option gc-keep-outputs false.
This commit is contained in:
@ -221,6 +221,9 @@ bool State::getQueuedBuilds(Connection & conn,
|
||||
Derivation drv = readDerivation(build->drvPath);
|
||||
BuildOutput res = getBuildOutputCached(conn, destStore, drv);
|
||||
|
||||
for (auto & path : drv.outputPaths())
|
||||
writeFile(rootsDir + "/" + baseNameOf(path), "");
|
||||
|
||||
{
|
||||
auto mc = startDbUpdate();
|
||||
pqxx::work txn(conn);
|
||||
|
Reference in New Issue
Block a user