hydra-queue-runner: Write GC roots for outputs paths

We lost this behaviour somewhere. So build outputs could be GC'ed when
running the collector with --option gc-keep-outputs false.
This commit is contained in:
Eelco Dolstra
2017-10-12 18:55:38 +02:00
parent eb7631fb9d
commit 45b138373b
4 changed files with 12 additions and 0 deletions

View File

@ -436,6 +436,11 @@ private:
bool uploadLogsToBinaryCache;
/* Where to store GC roots. Defaults to
/nix/var/nix/gcroots/per-user/$USER/hydra-roots, overridable
via gc_roots_dir. */
nix::Path rootsDir;
public:
State();