From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id oMTSE9Z0u187aQAA0tVLHw (envelope-from ) for ; Mon, 23 Nov 2020 08:37:42 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sNavD9Z0u1+1VAAAB5/wlQ (envelope-from ) for ; Mon, 23 Nov 2020 08:37:42 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 164BA9403EC for ; Mon, 23 Nov 2020 08:37:42 +0000 (UTC) Received: from localhost ([::1]:39464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kh7Lx-0006NP-1l for larch@yhetil.org; Mon, 23 Nov 2020 03:37:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kh7Lm-0006I3-Hn for guix-devel@gnu.org; Mon, 23 Nov 2020 03:37:30 -0500 Received: from mira.cbaines.net ([2a01:7e00:e000:2f8:fd4d:b5c7:13fb:3d27]:33797) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kh7Lj-0000JH-Hv; Mon, 23 Nov 2020 03:37:30 -0500 Received: from localhost (188.28.108.199.threembb.co.uk [188.28.108.199]) by mira.cbaines.net (Postfix) with ESMTPSA id F0EEC27BBF6; Mon, 23 Nov 2020 08:37:23 +0000 (GMT) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id c53377c0; Mon, 23 Nov 2020 08:37:21 +0000 (UTC) References: <20201122161938.30063.63195@vcs0.savannah.gnu.org> <20201122161940.6485520981@vcs0.savannah.gnu.org> <87mtz9knjl.fsf@gnu.org> User-agent: mu4e 1.4.13; emacs 27.1 From: Christopher Baines To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: 01/03: guix: store: Add ensure-path. In-reply-to: <87mtz9knjl.fsf@gnu.org> Date: Mon, 23 Nov 2020 08:37:18 +0000 Message-ID: <87tutgh3k1.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a01:7e00:e000:2f8:fd4d:b5c7:13fb:3d27; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org, Mathieu Othacehe Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -3.11 X-TUID: BlIfxFNOuZCl --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Hi! > > guix-commits@gnu.org skribis: > >> commit 2a7e1121d83ee173a7a0dbfb978a4ac363c7c4a6 >> Author: Mathieu Othacehe >> AuthorDate: Wed Nov 4 14:39:40 2020 +0100 >> >> guix: store: Add ensure-path. >>=20=20=20=20=20 >> * 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=E2=80=99t think a GC root is mad= e. > You have to call =E2=80=98add-temp-root=E2=80=99 if you want that to happ= en, no? > > However =E2=80=98ensure-path=E2=80=99 can substitute the store item, whic= h 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. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl+7dL5fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9Xf6wA/+JNhnwK5wYDHE/0yjlLAvjw1BnU5uSCWB TcwhIWfXgQJsN56TNLZN17o6w0PV1MHCj+5HvDVdkIXgJ6G+qe8/qXmdGn8Ecszl zStkitrT7pHTjW96WfJNzgrdq9/+E4mqWsFwMqgDeK8V9GAdPOzpRngP0Fyf/bgT eI2NtgJW3Wc4s+mxO1SYOHi4qfhLRUAEUFqX04XX0OcmvVPO6xoWI7VVDgtJUQti Otee4SEirvVwzNT2D9rmRTRAXj78uWq8Y9GwBNB7uiOK6aARQDKKGBm7Y3vKiJai zdA4mgOgcDpB+7XL3oqzpoUyOm1v83IOeVaTvkIlxNMzeepo/7t6+Id75t9Fe5n+ xOTf7sIPQdO9bHScRtr523KVbLmKGiKaLoY84QuURHb5py/whjfQKX21s1vEYVwW k5BxgdAuPJ9WeWvFF449Q8qtZ8FnM1jyZ1gOM+RrKVVE0H4j5s/Pf45A/TPVuOEf 4FVYEilZ+nFgVpVNySfQrpPvcn/jPuhrZuPELzNresScbGHEPRmfObVdIWziVT12 QxgvOL2Nqt/OXOjHy5MUhxAiw7BUcLgKNdVM61EosR41PqN4+3dOYQxJp/VbyW7M ZwDOh9UC4APvSMByDrzB2n2A3js7sT8LHDDBUuFvwF/NJBBtpeG1S0zFbfFtyppb iFAhV9Xwlw4= =KJmF -----END PGP SIGNATURE----- --=-=-=--