Revert "libstore: fix scratch output cleanup"
This reverts commit 1d36dd7596 as this is an insufficient fix for the critical correctness bug.
Change-Id: Id48fec6e2146ccc98edb39629d9944404a17ba8c
This commit is contained in:
@@ -539,9 +539,7 @@ kj::Promise<Outcome<void, Goal::WorkResult>> LocalDerivationGoal::startBuilder()
|
||||
/* Schedule this scratch output path for automatic deletion
|
||||
* if we do not cancel it, e.g. when registering the outputs.
|
||||
*/
|
||||
scratchOutputsCleaner.emplace(
|
||||
outputName, worker.store.toRealPath(worker.store.printStorePath(scratchPath))
|
||||
);
|
||||
scratchOutputsCleaner.insert_or_assign(outputName, worker.store.printStorePath(scratchPath));
|
||||
|
||||
/* Substitute output placeholders with the scratch output paths.
|
||||
We'll use during the build. */
|
||||
|
||||
Reference in New Issue
Block a user