guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 01/03: guix: store: Add ensure-path.


From: Ludovic Courtès
Subject: Re: 01/03: guix: store: Add ensure-path.
Date: Sun, 22 Nov 2020 23:57:18 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Hi!

guix-commits@gnu.org skribis:

> commit 2a7e1121d83ee173a7a0dbfb978a4ac363c7c4a6
> Author: Mathieu Othacehe <othacehe@gnu.org>
> AuthorDate: Wed Nov 4 14:39:40 2020 +0100
>
>     guix: store: Add ensure-path.
>     
>     * guix/store.scm (ensure-path): New procedure.

[...]

> +(define-operation (ensure-path (store-path path))
> +  "Make PATH a temporary root for the duration of the current session.
> +Return #t."
> +  boolean)

Looking at LocalStore::ensurePath, I don’t think a GC root is made.
You have to call ‘add-temp-root’ if you want that to happen, no?

However ‘ensure-path’ can substitute the store item, which I suppose
means you can substitute .drv files without building them, am I right?
:-)

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]