From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 8FWqNwu1Y1+mWQAA0tVLHw (envelope-from ) for ; Thu, 17 Sep 2020 19:12:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id T0CSMwu1Y19OBwAA1q6Kng (envelope-from ) for ; Thu, 17 Sep 2020 19:12:11 +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 6D2B59403C9 for ; Thu, 17 Sep 2020 19:12:11 +0000 (UTC) Received: from localhost ([::1]:50978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIzKE-0006aw-Dy for larch@yhetil.org; Thu, 17 Sep 2020 15:12:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIzK6-0006ZD-Nn for bug-guix@gnu.org; Thu, 17 Sep 2020 15:12:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55793) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIzK6-0008FQ-Da for bug-guix@gnu.org; Thu, 17 Sep 2020 15:12:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kIzK6-0001lb-7o for bug-guix@gnu.org; Thu, 17 Sep 2020 15:12:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42688: Running a script with `guix repl` doesn't "see" additional channels using (%package-module-path) Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 17 Sep 2020 19:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42688 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Leo Prikler Received: via spool by 42688-submit@debbugs.gnu.org id=B42688.16003698676728 (code B ref 42688); Thu, 17 Sep 2020 19:12:02 +0000 Received: (at 42688) by debbugs.gnu.org; 17 Sep 2020 19:11:07 +0000 Received: from localhost ([127.0.0.1]:39105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIzJD-0001kR-02 for submit@debbugs.gnu.org; Thu, 17 Sep 2020 15:11:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIzJ8-0001jm-J6 for 42688@debbugs.gnu.org; Thu, 17 Sep 2020 15:11:06 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43623) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIzJ1-00084q-K2; Thu, 17 Sep 2020 15:10:55 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=39922 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kIzJ1-0003GP-5e; Thu, 17 Sep 2020 15:10:55 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20200803043331.78b20336@runbox.com> <874knws9mu.fsf@gnu.org> <34cc318a15bd8070d0863214864687c0d45a414c.camel@student.tugraz.at> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Jour du =?UTF-8?Q?G=C3=A9nie?= de =?UTF-8?Q?l'Ann=C3=A9e?= 228 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 17 Sep 2020 21:10:53 +0200 In-Reply-To: <34cc318a15bd8070d0863214864687c0d45a414c.camel@student.tugraz.at> (Leo Prikler's message of "Thu, 17 Sep 2020 18:15:23 +0200") Message-ID: <877dss9q2q.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 42688@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: LgPGfwwacroC Hi, Leo Prikler skribis: > Am Donnerstag, den 17.09.2020, 17:31 +0200 schrieb Ludovic Court=C3=A8s: >> Hi Leo, >>=20 >> [...] >>=20 >> =E2=80=98scm_program_arguments_fluid=E2=80=99 is marked as SCM_INTERNAL,= so it=E2=80=99s >> really >> inaccessible. > Thought so. > >> However, perhaps we could save the initial value of (program- >> arguments) >> in (guix ui) and use that in (guix describe)? > I'd personally put it in (guix describe) and use the same autoload > trick, that you've now used for %package-module-path (or a dedicated > save-...-excursion). In general, (guix =E2=80=A6) module should not depend on (gnu =E2=80=A6) mo= dules, which rules out this option. > (guix ui) has a heavy closure for (guix describe) to pull. Every (guix scripts =E2=80=A6) module depends on (guix ui) via the =E2=80= =98guix=E2=80=99 command. (Probably something we could improve, but that=E2=80=99s the way = it is.) Now, I realize my proposal was misguided because (guix describe) should remain =E2=80=9CUI-free=E2=80=9D so to speak. Hmm=E2=80=A6 >> > On the other hand, we could patch `guix repl` to initialize >> > %package- >> > module-path earlier (still leaving `guix describe` broken) or >> > somehow >> > try to work around that issue in `guix describe`. >>=20 >> Initializing (%package-module-path) earlier sounds like a good idea >> too, >> maybe like this: >>=20 >> [...]=20 >>=20 > I haven't tested that yet (pre-inst-env makes it so Guix doesn't have > any channels anyway), but yeah, something like that would have been my > idea. Alright, I=E2=80=99ll give it a spin. Thank you! Ludo=E2=80=99.