Merge pull request #8399 from tweag/fix-chrooted-stores-error-path

Properly report build errors on chrooted stores
This commit is contained in:
Eelco Dolstra
2023-05-27 17:55:57 +02:00
committed by GitHub

View File

@@ -357,7 +357,7 @@ bool LocalDerivationGoal::cleanupDecideWhetherDiskFull()
for (auto & [_, status] : initialOutputs) {
if (!status.known) continue;
if (buildMode != bmCheck && status.known->isValid()) continue;
auto p = worker.store.printStorePath(status.known->path);
auto p = worker.store.toRealPath(status.known->path);
if (pathExists(chrootRootDir + p))
renameFile((chrootRootDir + p), p);
}