mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
daemon: Prevent .chroot from being GC'ed when using LocalStore::buildDerivation()
Fixes #616.
This commit is contained in:
parent
18b3151613
commit
538684d0c4
1 changed files with 4 additions and 0 deletions
|
@ -882,6 +882,10 @@ DerivationGoal::DerivationGoal(const Path & drvPath, const StringSet & wantedOut
|
|||
state = &DerivationGoal::init;
|
||||
name = (format("building of `%1%'") % drvPath).str();
|
||||
trace("created");
|
||||
|
||||
/* Prevent the .chroot directory from being
|
||||
garbage-collected. (See isActiveTempFile() in gc.cc.) */
|
||||
worker.store.addTempRoot(drvPath);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue