Pierre Neidhardt <[email protected]> skribis:

>> Not yet!  You could do it manually roughly by (1) listing the referrers
>> of the store item, recursively, and (2) finding the symlinks in
>> /var/guix/gcroots that point to one of these.
>
> In the example in my first message, the referrers of the .drv are either
> non-existent or the .drv itself.  In this case, there should be no GC root 
> then,
> right?  Why is the item considered alive?

It’s considered live because you’re using
--gc-keep-outputs/--gc-keep-derivations, which modify the way the GC
determines whether an object is live.

If, say, “coreutils” is live, then the corresponding “coreutils.drv”
will be considered live as well when you pass --gc-keep-derivations.

Ludo’.

Reply via email to