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
commit 61ddfa154b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}