Revert "libstore: fix scratch output cleanup"

This reverts commit 779e795732 as this is an insufficient fix for the critical correctness bug.

Change-Id: I5681c9f25537e01892e4c9e7feff2cee8b6edb25
This commit is contained in:
eldritch horrors
2025-06-29 19:05:14 +00:00
committed by Raito Bezarius
parent 2310539e66
commit d227ad324e
+1 -3
View File
@@ -530,9 +530,7 @@ void 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. */