unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* 'guix build' and garbage collection
@ 2017-04-02  1:06 Chris Marusich
  2017-04-02  9:30 ` Ludovic Courtès
  0 siblings, 1 reply; 8+ messages in thread
From: Chris Marusich @ 2017-04-02  1:06 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 746 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-04-07 19:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-02  1:06 'guix build' and garbage collection Chris Marusich
2017-04-02  9:30 ` Ludovic Courtès
2017-04-03  6:40   ` Chris Marusich
2017-04-03  8:53     ` Ludovic Courtès
2017-04-03 16:29       ` Chris Marusich
2017-04-04 12:13         ` Ludovic Courtès
2017-04-07  3:47           ` Chris Marusich
2017-04-07 19:53             ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).