Merge pull request #11479 from NixOS/mergify/bp/2.19-maintenance/pr-11473

Fix making the build directory kept by `keep-failed` readable (backport #11473)
This commit is contained in:
Robert Hensing 2024-09-16 12:39:18 +02:00 committed by GitHub
commit 59532228ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2961,6 +2961,7 @@ void LocalDerivationGoal::deleteTmpDir(bool force)
might have privileged stuff (like a copy of netrc). */
if (settings.keepFailed && !force && !drv->isBuiltin()) {
printError("note: keeping build directory '%s'", tmpDir);
chmod(topTmpDir.c_str(), 0755);
chmod(tmpDir.c_str(), 0755);
}
else