unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org, Mathieu Othacehe <othacehe@gnu.org>
Subject: Re: 01/03: guix: store: Add ensure-path.
Date: Mon, 23 Nov 2020 08:37:18 +0000	[thread overview]
Message-ID: <87tutgh3k1.fsf@cbaines.net> (raw)
In-Reply-To: <87mtz9knjl.fsf@gnu.org>

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


Ludovic Courtès <ludo@gnu.org> writes:

> 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?
> :-)

That's an exciting prospect! That would help a lot with the Guix Build
Coordinator, being able to substitute derivations without building them.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

  reply	other threads:[~2020-11-23  8:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20201122161938.30063.63195@vcs0.savannah.gnu.org>
     [not found] ` <20201122161940.6485520981@vcs0.savannah.gnu.org>
2020-11-22 22:57   ` 01/03: guix: store: Add ensure-path Ludovic Courtès
2020-11-23  8:37     ` Christopher Baines [this message]
2020-11-23  9:11     ` Mathieu Othacehe
2020-11-23 11:34       ` Ludovic Courtès
2020-11-23 13:17         ` Mathieu Othacehe
2020-11-27 10:20           ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tutgh3k1.fsf@cbaines.net \
    --to=mail@cbaines.net \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    --cc=othacehe@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).