mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
Don't delete .check directories of running builds
We need to keep them around for diffoscope.
This commit is contained in:
parent
88ef77226e
commit
b30d1e7ada
2 changed files with 7 additions and 2 deletions
|
@ -621,6 +621,11 @@ void LocalStore::tryToDelete(GCState & state, const Path & path)
|
|||
/* Don't delete .chroot directories for derivations that are
|
||||
currently being built. */
|
||||
if (isActiveTempFile(state, path, ".chroot")) return;
|
||||
|
||||
/* Don't delete .check directories for derivations that are
|
||||
currently being built, because we may need to run
|
||||
diff-hook. */
|
||||
if (isActiveTempFile(state, path, ".check")) return;
|
||||
}
|
||||
|
||||
PathSet visited;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue