Hi,

I saw this in guix/scripts.build.scm:

--8<---------------cut here---------------start------------->8---
(and (build-derivations store drv mode)
     (for-each show-derivation-outputs drv)
     (for-each (cut register-root store <> <>)
               (map (lambda (drv)
                      (map cdr
                           (derivation->output-paths drv)))
                    drv)
               roots))
--8<---------------cut here---------------end--------------->8---

Here, we build the derivations, and then we add indirect GC roots.  My
question is: what guarantee is there that the output paths will not be
garbage collected after we build the derivations but before we add the
indirect GC roots?

-- 
Chris

Attachment: signature.asc
Description: PGP signature

Reply via email to