From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: nesting with-imported-modules Date: Sun, 2 Feb 2020 16:47:29 +0100 Message-ID: References: <874kwat0a8.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000068cfc3059d99baa6" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:47595) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyHTR-0001HW-Rd for guix-devel@gnu.org; Sun, 02 Feb 2020 10:47:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyHTQ-0008OZ-Rn for guix-devel@gnu.org; Sun, 02 Feb 2020 10:47:49 -0500 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]:43538) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iyHTQ-0008OH-Lu for guix-devel@gnu.org; Sun, 02 Feb 2020 10:47:48 -0500 Received: by mail-ed1-x52b.google.com with SMTP id dc19so13302958edb.10 for ; Sun, 02 Feb 2020 07:47:48 -0800 (PST) In-Reply-To: <874kwat0a8.fsf@elephly.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: Ricardo Wurmus Cc: Guix-devel --00000000000068cfc3059d99baa6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, Ricardo Wurmus ezt =C3=ADrta (id=C5=91pont: 2020. febr= . 1., Szo 23:23): > Hi Guix, > > it seems that it is impossible to nest with-imported-modules. A gexp > that is wrapped in multiple layers of with-imported-modules won=E2=80=99t= depend > on the list of all mentioned modules but only on the outermost. > > This is because with-imported-modules sets the current-imported-modules > parameter without checking if the parameter already has a value. > > Should nesting be supported? It seems useful. > Looks useful to me. Also, it seems to me that with-imported-modules work in unexpected ways when wrapped inside with-extensions. What I observed was that adding a with-imported-modules some-guix-module inside a with-extensions guix broke patch file search. Can that be related? > > -- > Ricardo > > --00000000000068cfc3059d99baa6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

Ricardo Wurmus <rekado@elephly.net> ezt =C3=ADrta (id=C5=91pont: 2020. febr= . 1., Szo 23:23):
Hi Guix,

it seems that it is impossible to nest with-imported-modules.=C2=A0 A gexp<= br> that is wrapped in multiple layers of with-imported-modules won=E2=80=99t d= epend
on the list of all mentioned modules but only on the outermost.

This is because with-imported-modules sets the current-imported-modules
parameter without checking if the parameter already has a value.

Should nesting be supported?=C2=A0 It seems useful.
<= /div>

Looks useful to me. Also= , it seems to me that with-imported-modules work in unexpected ways when wr= apped inside with-extensions.=C2=A0
What I observed = was that adding a with-imported-modules some-guix-module inside a with-exte= nsions guix broke patch file search. Can that be related?

--
Ricardo

--00000000000068cfc3059d99baa6--