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:
eldritch horrors
2025-06-29 20:36:57 +00:00
parent 56b0b39465
commit 8cbdc36a60
+1 -3
View File
@@ -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. */