GNU logs - #61343, boring messages


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#61343: modules from channels is not available to "guix repl"
Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 07 Feb 2023 09:00:02 +0000
Resent-Message-ID: <handler.61343.B.167576035525457 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 61343
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 61343 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-guix@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.167576035525457
          (code B ref -1); Tue, 07 Feb 2023 09:00:02 +0000
Received: (at submit) by debbugs.gnu.org; 7 Feb 2023 08:59:15 +0000
Received: from localhost ([127.0.0.1]:51053 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pPJop-0006cX-DH
	for submit <at> debbugs.gnu.org; Tue, 07 Feb 2023 03:59:15 -0500
Received: from lists.gnu.org ([209.51.188.17]:52642)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <iyzsong@HIDDEN>) id 1pPJon-0006cP-Bl
 for submit <at> debbugs.gnu.org; Tue, 07 Feb 2023 03:59:13 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <iyzsong@HIDDEN>) id 1pPJon-0001db-2k
 for bug-guix@HIDDEN; Tue, 07 Feb 2023 03:59:13 -0500
Received: from mail.envs.net ([5.199.136.28])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <iyzsong@HIDDEN>) id 1pPJok-0006mi-Ti
 for bug-guix@HIDDEN; Tue, 07 Feb 2023 03:59:12 -0500
Received: from localhost (mail.envs.net [127.0.0.1])
 by mail.envs.net (Postfix) with ESMTP id ED0A338A04F1
 for <bug-guix@HIDDEN>; Tue,  7 Feb 2023 08:59:00 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa;
 t=1675760340; bh=rNUZ8wdqngL5ihbI2i6ES0T+wjNZErv+wRUCm1ND32Y=;
 h=From:To:Subject:Date:From;
 b=XBAKJ6IpUaoZPYEqWlAriR33jHAmginAE6U/XZCzUeMYnTH40I3Wd2EVUyYRvA5RB
 qsct36t0YJi1JmkvtlC5x5EeLzxdsZGngo++r+Tdy/yUsQm5NNUmppYlI71+dMZ9bP
 x89PM4+QuCqmo9QGefEUHZzpYYE0xfAapTUvpvuL/5cGS4QVZpjJIsXM+mk6pcMum7
 c5FDUoUQnyIsHP2hy9uj5TbEqL/vGEN7/L/hkSydEump/QXr7iKJ95pvZiP1XiPLAn
 m4soGI2tOaWDM4+0ARkHJWIm83lWuze5UeEUM5fgvzVQDmquEfO/z9Vaaas/kOhNY/
 8Dwj3BHVWV2iSsdzislSOhkvTklZ8IUmPFIDvlRFI7hVnfmlnFnxzi0UwpHA13q4Zb
 pfKBGoR4b1ETrHP4YTHdYfHolITc9haVcoDvhqHUtDaEIjIuLec+JcIDyi4svpcO4q
 1Eoq1oNaFLqtswgNZpToacxe5rrAIyja2uOF8AQKdNzj8MbkVXPFy3wlP25LgvA3J5
 5BJ/SLHod2fYe7TTKZY4ZvwtnLGdzOWv5tgcVVTEcLKgZr3bmyI5pENHFNPR/iflVh
 t4Y5VrBby4Sth1rW1jrDPNlvZ4bASrloQup02HRP+yqArELa7BLMRiZdD2BUURdRW7
 vHV+5dcI9yeZ2lY/p6sN/5u8=
X-Virus-Scanned: Debian amavisd-new at mail.envs.net
Received: from mail.envs.net ([127.0.0.1])
 by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id Y37BBRhblrM5 for <bug-guix@HIDDEN>;
 Tue,  7 Feb 2023 08:58:58 +0000 (UTC)
Received: from localhost (unknown [182.150.116.135])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 by mail.envs.net (Postfix) with ESMTPSA
 for <bug-guix@HIDDEN>; Tue,  7 Feb 2023 08:58:58 +0000 (UTC)
Received: from localhost (localhost [local])
 by localhost (OpenSMTPD) with ESMTPA id e2045277
 for <bug-guix@HIDDEN>; Tue, 7 Feb 2023 08:59:15 +0000 (UTC)
From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Date: Tue, 07 Feb 2023 16:59:15 +0800
Message-ID: <87k00tlul8.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=5.199.136.28; envelope-from=iyzsong@HIDDEN;
 helo=mail.envs.net
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

I have add the rde channel to my guix, and "guix pull".
--8<---------------cut here---------------start------------->8---
(cons*
 (channel
  (name 'rde)
  (url "https://git.sr.ht/~abcdw/rde")
  (introduction
   (make-channel-introduction
    "257cebd587b66e4d865b3537a9a88cccd7107c95"
    (openpgp-fingerprint
     "2841 9AC6 5038 7440 C7E9  2FFA 2208 D209 58C1 DEB0"))))
 %default-channels)
--8<---------------cut here---------------end--------------->8---

But then, Run:
  echo '(use-modules (rde features))' | guix repl /dev/stdin
Will get error: no code for module (rde features)

Well, Run:
  echo '(use-modules (gnu packages) (rde features))' | guix repl /dev/stdin
Will pass!




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Subject: bug#61343: Acknowledgement (modules from channels is not
 available to "guix repl")
Message-ID: <handler.61343.B.167576035525457.ack <at> debbugs.gnu.org>
References: <87k00tlul8.fsf@HIDDEN>
X-Gnu-PR-Message: ack 61343
X-Gnu-PR-Package: guix
Reply-To: 61343 <at> debbugs.gnu.org
Date: Tue, 07 Feb 2023 09:00:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-guix@HIDDEN

If you wish to submit further information on this problem, please
send it to 61343 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
61343: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D61343
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#61343: modules from channels is not available to "guix repl"
Resent-From: Simon Tournier <zimon.toutoune@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 14 Feb 2023 19:26:02 +0000
Resent-Message-ID: <handler.61343.B61343.16764027219544 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 61343
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>, 61343 <at> debbugs.gnu.org
Received: via spool by 61343-submit <at> debbugs.gnu.org id=B61343.16764027219544
          (code B ref 61343); Tue, 14 Feb 2023 19:26:02 +0000
Received: (at 61343) by debbugs.gnu.org; 14 Feb 2023 19:25:21 +0000
Received: from localhost ([127.0.0.1]:57015 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pS0vZ-0002Tr-BO
	for submit <at> debbugs.gnu.org; Tue, 14 Feb 2023 14:25:21 -0500
Received: from mail-wr1-f47.google.com ([209.85.221.47]:37799)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1pS0vU-0002Su-Kd
 for 61343 <at> debbugs.gnu.org; Tue, 14 Feb 2023 14:25:17 -0500
Received: by mail-wr1-f47.google.com with SMTP id m10so7845197wrn.4
 for <61343 <at> debbugs.gnu.org>; Tue, 14 Feb 2023 11:25:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=nhOwJ6JtmxLW52cNtStnU1WbTRs0YhWpaohzM8hVPjE=;
 b=XWJst04MhvdA4ZC7oMkQwmQjKEJUxDB2GdBULXXlMV4TpuqazCuppBR2vV3MYP5p2B
 xZUjjEgooK1i414Le8OIzk+O5K7i0PN64rfn1RngckKgs8B28OLxytnlRFwLql4jg2Ae
 jfMT8VFdZO1f/5uR47srwXBhfHXkdxL7eJ5pBgplsSpsJFws4jl1/YUdhltsi+oRI7k/
 zoh3lqgGTZ3WqLtaDCCUtV+MNUSlNqYPbyPD5Dr1mHDdxYgybsIRsFWltZ6asqr+B7Ps
 WpNreG6d1QILzqrtdl7/F08IOKowzysM7emAOu/Dj3at+W7jhjGvYi+JqFB8HtGDkm+f
 F7iQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject
 :date:message-id:reply-to;
 bh=nhOwJ6JtmxLW52cNtStnU1WbTRs0YhWpaohzM8hVPjE=;
 b=GCZOF29vjdS8mR2EQoclOXdPiSniqsjZzSqd6SxrS418iCLyQHmcai1BLvuftpeMgR
 tm/vMfZ9EO5TSZrmSVTaAFtjDdcm9h5M55zPoMQGcdipPWU9MWirt11tQkAl3S9qhJLg
 QBbhXvmkfilxMgAEBUlcRD0N0Dl067YxHbyOmJiKAJ/h4hI9DlFKOUwq6GhYBg3WpGHs
 f+4lKmG3ur6ClESkQ/TVYEi7ExbNVqOVo4xpnZ1gcndaa8VA8cYv0ZiTl9LtCybhQebp
 Xv776IXRGnZ3IvaKIhdTNwTPp729GK6jPFUfJ6PIELDS+ErazHPYgAvgm7AnDwLdiVgZ
 ydJA==
X-Gm-Message-State: AO0yUKUij8gA7AoP4XddHFXWMKyowdT4ek6LK3wee9AfcH+IbwC19YPQ
 uh+3S0hKvgdkIu+plwLnBlyf0Ovd9sM=
X-Google-Smtp-Source: AK7set+v1/RuU5xVJl/d9y2GyoK38yBRMPJGV+hw9JsXtIT2aFsWplXu3Ck0BDNIaS4MCca7FqmMHA==
X-Received: by 2002:adf:f68f:0:b0:2c5:4e28:e33c with SMTP id
 v15-20020adff68f000000b002c54e28e33cmr2500156wrp.2.1676402710938; 
 Tue, 14 Feb 2023 11:25:10 -0800 (PST)
Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id
 k24-20020a5d5258000000b002c54c9bd71fsm10571788wrc.93.2023.02.14.11.25.10
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 14 Feb 2023 11:25:10 -0800 (PST)
From: Simon Tournier <zimon.toutoune@HIDDEN>
In-Reply-To: <87k00tlul8.fsf@HIDDEN>
References: <87k00tlul8.fsf@HIDDEN>
Date: Tue, 14 Feb 2023 20:22:45 +0100
Message-ID: <87zg9gxda2.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,

On mar., 07 f=C3=A9vr. 2023 at 16:59, =E5=AE=8B=E6=96=87=E6=AD=A6 via Bug r=
eports for GNU Guix <bug-guix@HIDDEN> wrote:

> --8<---------------cut here---------------start------------->8---
> (cons*
>  (channel
>   (name 'rde)
>   (url "https://git.sr.ht/~abcdw/rde")
>   (introduction
>    (make-channel-introduction
>     "257cebd587b66e4d865b3537a9a88cccd7107c95"
>     (openpgp-fingerprint
>      "2841 9AC6 5038 7440 C7E9  2FFA 2208 D209 58C1 DEB0"))))
>  %default-channels)
> --8<---------------cut here---------------end--------------->8---
>
> But then, Run:
>   echo '(use-modules (rde features))' | guix repl /dev/stdin
> Will get error: no code for module (rde features)
>
> Well, Run:
>   echo '(use-modules (gnu packages) (rde features))' | guix repl /dev/std=
in
> Will pass!

Yes, somehow a bug with the load path.

--8<---------------cut here---------------start------------->8---
$ guix time-machine -C /tmp/channels.scm -- repl -q
GNU Guile 3.0.9
Copyright (C) 1995-2023 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guix-user)> ,pp %load-path
$1 =3D ("/gnu/store/n7h2ggfgljikvy9xlppsihvhgqj6bprd-guix-module-union/shar=
e/guile/site/3.0"
 "/gnu/store/kphp5d85rrb3q1rdc2lfqc1mdklwh3qp-guile-3.0.9/share/guile/3.0"
 "/gnu/store/kphp5d85rrb3q1rdc2lfqc1mdklwh3qp-guile-3.0.9/share/guile/3.0"
 "/gnu/store/kphp5d85rrb3q1rdc2lfqc1mdklwh3qp-guile-3.0.9/share/guile/site/=
3.0"
 "/gnu/store/kphp5d85rrb3q1rdc2lfqc1mdklwh3qp-guile-3.0.9/share/guile/site"
 "/gnu/store/kphp5d85rrb3q1rdc2lfqc1mdklwh3qp-guile-3.0.9/share/guile"
 "/home/simon/.guix-profile/share/guile/site/3.0"
 "/home/simon/.config/guix/profiles/emacs/emacs/share/guile/site/3.0"
 "/home/simon/.guix-profile/share/guile/site/3.0"
 "/home/simon/.config/guix/profiles/emacs/emacs/share/guile/site/3.0")
scheme@(guix-user)> (use-modules (gnu packages))
scheme@(guix-user)> ,pp %load-path
$2 =3D ("/gnu/store/n7h2ggfgljikvy9xlppsihvhgqj6bprd-guix-module-union/shar=
e/guile/site/3.0"
 "/gnu/store/kphp5d85rrb3q1rdc2lfqc1mdklwh3qp-guile-3.0.9/share/guile/3.0"
 "/gnu/store/kphp5d85rrb3q1rdc2lfqc1mdklwh3qp-guile-3.0.9/share/guile/3.0"
 "/gnu/store/kphp5d85rrb3q1rdc2lfqc1mdklwh3qp-guile-3.0.9/share/guile/site/=
3.0"
 "/gnu/store/kphp5d85rrb3q1rdc2lfqc1mdklwh3qp-guile-3.0.9/share/guile/site"
 "/gnu/store/kphp5d85rrb3q1rdc2lfqc1mdklwh3qp-guile-3.0.9/share/guile"
 "/home/simon/.guix-profile/share/guile/site/3.0"
 "/home/simon/.config/guix/profiles/emacs/emacs/share/guile/site/3.0"
 "/home/simon/.guix-profile/share/guile/site/3.0"
 "/home/simon/.config/guix/profiles/emacs/emacs/share/guile/site/3.0"
 "/gnu/store/nf3z5kqjybi687v8li2dcbc5i49zm15s-rde/share/guile/site/3.0")
scheme@(guix-user)> ,use(srfi srfi-1)
scheme@(guix-user)> (lset-difference string=3D? $2 $1)
$3 =3D ("/gnu/store/nf3z5kqjybi687v8li2dcbc5i49zm15s-rde/share/guile/site/3=
.0")
scheme@(guix-user)> ,q

$ ls /gnu/store/nf3z5kqjybi687v8li2dcbc5i49zm15s-rde/share/guile/site/3.0
contrib  gnu  rde
--8<---------------cut here---------------end--------------->8---

From my understanding, it is about %package-module-path not activated by
=E2=80=9Cguix repl=E2=80=9C; I do not know if it is a bug or a feature. :-)


Cheers,
simon




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#61343: [PATCH] scripts: repl: Load (gnu packages) to set up %load-path.
Resent-From: Josselin Poiret <dev@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 16 Feb 2023 21:15:02 +0000
Resent-Message-ID: <handler.61343.B61343.167658210130727 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 61343
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Simon Tournier <zimon.toutoune@HIDDEN>, =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>, 61343 <at> debbugs.gnu.org
Cc: Josselin Poiret <dev@HIDDEN>
Received: via spool by 61343-submit <at> debbugs.gnu.org id=B61343.167658210130727
          (code B ref 61343); Thu, 16 Feb 2023 21:15:02 +0000
Received: (at 61343) by debbugs.gnu.org; 16 Feb 2023 21:15:01 +0000
Received: from localhost ([127.0.0.1]:37794 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pSlam-0007zU-VM
	for submit <at> debbugs.gnu.org; Thu, 16 Feb 2023 16:15:01 -0500
Received: from jpoiret.xyz ([206.189.101.64]:43830)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dev@HIDDEN>) id 1pSlak-0007zD-EC
 for 61343 <at> debbugs.gnu.org; Thu, 16 Feb 2023 16:15:00 -0500
Received: from authenticated-user (jpoiret.xyz [206.189.101.64])
 by jpoiret.xyz (Postfix) with ESMTPA id C588A185318;
 Thu, 16 Feb 2023 21:14:54 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim;
 t=1676582095;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:
 content-transfer-encoding:content-transfer-encoding:
 in-reply-to:in-reply-to:references:references;
 bh=m7gvnhsOoc6/kxheg94gcTO2ELWAQLXCvr5bOkVpC/0=;
 b=Ke0jHZrpW7VBKpLoFagD53SRZeVnpFvFKx0K9Y50xxrMWDOJDtHSH0t8EXzFM3ggzAJfAK
 o0E5I6Lcp2bbwKme5cgtLgf624QvSI2XB6OWjxc4b5m5Zt1zMqF1NnGg75ZTOZyMMJdp/D
 rOeXJgpZdh0guQQI1sTZumJYcBBzHHSDcU1I/QY+xUVeprtkvJBZKhclNxHRz9A+l/XI7v
 lt/HUznixt4UWs4avEgWiXlcSV4l5YYz3AJsnc1x8fhXb+w8rmQ0XtlV+UzJNMAwDuactg
 bFvDIGQPQ8dZnrYRr53j71bOLa8PLPH/qBj5EHQY/toURM0HhXJmVz4lJvU63A==
From: Josselin Poiret <dev@HIDDEN>
Date: Thu, 16 Feb 2023 22:14:49 +0100
Message-Id: <e0ffbcbb07fe41a04688223342461aa4d3310142.1676582046.git.dev@HIDDEN>
In-Reply-To: <87zg9gxda2.fsf@HIDDEN>
References: <87zg9gxda2.fsf@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Authentication-Results: jpoiret.xyz;
 auth=pass smtp.auth=jpoiret@HIDDEN smtp.mailfrom=dev@HIDDEN
X-Spam-Level: ******
X-Spamd-Bar: ++++++
X-Spam: Yes
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* guix/scripts/repl.scm: Add (gnu packages) to the used modules so that channel
Scheme files are available straight away.
---
Hi both of you,

I don't think there's a reason for that, other than no one realizing before.
Here's a simple fix, freshly tested.

 guix/scripts/repl.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/guix/scripts/repl.scm b/guix/scripts/repl.scm
index 787c63d48e..407f5b2b38 100644
--- a/guix/scripts/repl.scm
+++ b/guix/scripts/repl.scm
@@ -22,6 +22,7 @@ (define-module (guix scripts repl)
   #:use-module (guix ui)
   #:use-module (guix scripts)
   #:use-module (guix repl)
+  #:use-module (gnu packages) ;; To extend %load-path with channels
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-26)
   #:use-module (srfi srfi-37)

base-commit: 312f1f41d3f3f3e5d2c36ff46920c6dce1c21a17
-- 
2.39.1





Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#61343: [PATCH] scripts: repl: Load (gnu packages) to set up %load-path.
Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Fri, 17 Feb 2023 03:11:01 +0000
Resent-Message-ID: <handler.61343.B61343.16766034054538 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 61343
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Josselin Poiret <dev@HIDDEN>
Cc: 61343 <at> debbugs.gnu.org, Simon Tournier <zimon.toutoune@HIDDEN>
Received: via spool by 61343-submit <at> debbugs.gnu.org id=B61343.16766034054538
          (code B ref 61343); Fri, 17 Feb 2023 03:11:01 +0000
Received: (at 61343) by debbugs.gnu.org; 17 Feb 2023 03:10:05 +0000
Received: from localhost ([127.0.0.1]:38145 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pSr8O-0001B7-RR
	for submit <at> debbugs.gnu.org; Thu, 16 Feb 2023 22:10:05 -0500
Received: from mail.envs.net ([5.199.136.28]:52668)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <iyzsong@HIDDEN>) id 1pSr8N-0001Av-2V
 for 61343 <at> debbugs.gnu.org; Thu, 16 Feb 2023 22:10:04 -0500
Received: from localhost (mail.envs.net [127.0.0.1])
 by mail.envs.net (Postfix) with ESMTP id 55A4838A07D1;
 Fri, 17 Feb 2023 03:09:59 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa;
 t=1676603399; bh=+QJPbo6m9EGkGmt2tJmTVY2C1zENXtqFSBRF0LuX4hc=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=fr/84h45d1AcFpjdUF9NmUFq0QaFeDMR7UkJ5JVR6DKpPmdMAlfDZqHbT76pGcXTZ
 sZhNjxdl1OQNEMbO3DMfgabO6iP3Bb4GF/epzSui0fBh4K0KRf3uQVvEaICbTOz+Sk
 iKFDNoQa+ltQQ5tqmQo1mYq7YEKvXOWkpHo92obxOogRRap2F5yzjIZXy0JQUCoX4j
 gCpkX5j+0xIJnb+oK7cXHtkBg/hnRP4tZyyCpeG5RyDwQLKJRMCmA5DLJ/6tD3ROTv
 sA0tEOUSk6riCXOzpXOYuvTXDU6IAX32bwD+cdA2BhZRGun0PjZQzVBiStKltsuRVd
 QAR2oiMhvJQ/WN3p977wg/eqzViqXsonjHtjKlFBoLwUMoVgls42PwaqMC2k8pPr6o
 h/n36jv0En7LAPPuSvNDOITdXUxn47JGM3n6U2cXsijnFDRDtjp3HySAU6BgX0RxDE
 gYaPSgP2HdWZQ3bVoyHsg5zhExuySqlbwW+tblJqIl+OeqVE/iMSxTx8SoJWOmtNUY
 JKlgF/lePK+pdEbQh5YyGB1s1eq33vzAvErcVpl84D//ghLumBl89BIOfCdD4z4KqW
 yDue0aqtGouMRGw4xbkdKyDh/AmeWL3mbIAzFhikApYTOomBeGCv0nj79lsrTvBkm8
 uptcC1VrX4gr37D/ouaHWuQo=
X-Virus-Scanned: Debian amavisd-new at mail.envs.net
Received: from mail.envs.net ([127.0.0.1])
 by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id dD_A2fM85DAS; Fri, 17 Feb 2023 03:09:53 +0000 (UTC)
Received: from localhost (unknown [182.150.116.135])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 by mail.envs.net (Postfix) with ESMTPSA;
 Fri, 17 Feb 2023 03:09:53 +0000 (UTC)
Received: from localhost (localhost [local])
 by localhost (OpenSMTPD) with ESMTPA id 73f4d1b3;
 Fri, 17 Feb 2023 03:09:53 +0000 (UTC)
From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
References: <87zg9gxda2.fsf@HIDDEN>
 <e0ffbcbb07fe41a04688223342461aa4d3310142.1676582046.git.dev@HIDDEN>
Date: Fri, 17 Feb 2023 11:09:53 +0800
In-Reply-To: <e0ffbcbb07fe41a04688223342461aa4d3310142.1676582046.git.dev@HIDDEN>
 (Josselin Poiret's message of "Thu, 16 Feb 2023 22:14:49 +0100")
Message-ID: <87cz69ugvy.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Josselin Poiret <dev@HIDDEN> writes:

> * guix/scripts/repl.scm: Add (gnu packages) to the used modules so that channel
> Scheme files are available straight away.
> ---
> Hi both of you,
>
> I don't think there's a reason for that, other than no one realizing before.
> Here's a simple fix, freshly tested.
>
>  guix/scripts/repl.scm | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/guix/scripts/repl.scm b/guix/scripts/repl.scm
> index 787c63d48e..407f5b2b38 100644
> --- a/guix/scripts/repl.scm
> +++ b/guix/scripts/repl.scm
> @@ -22,6 +22,7 @@ (define-module (guix scripts repl)
>    #:use-module (guix ui)
>    #:use-module (guix scripts)
>    #:use-module (guix repl)
> +  #:use-module (gnu packages) ;; To extend %load-path with channels
It's not clear to me why load (gnu packages) will/should extend
%load-path, a suprise side effect!




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#61343: [PATCH v2] scripts: repl: Extend REPL %load-path with all channels.
Resent-From: Simon Tournier <zimon.toutoune@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Fri, 17 Feb 2023 14:57:02 +0000
Resent-Message-ID: <handler.61343.B61343.167664580330612 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 61343
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 61343 <at> debbugs.gnu.org, zimon.toutoune@HIDDEN, iyzsong@HIDDEN
Cc: Josselin Poiret <dev@HIDDEN>
X-Debbugs-Original-To: Josselin Poiret via Bug reports for GNU Guix <bug-guix@HIDDEN>, Simon Tournier <zimon.toutoune@HIDDEN>, =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>, 61343 <at> debbugs.gnu.org
Received: via spool by 61343-submit <at> debbugs.gnu.org id=B61343.167664580330612
          (code B ref 61343); Fri, 17 Feb 2023 14:57:02 +0000
Received: (at 61343) by debbugs.gnu.org; 17 Feb 2023 14:56:43 +0000
Received: from localhost ([127.0.0.1]:40984 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pT2AF-0007xg-31
	for submit <at> debbugs.gnu.org; Fri, 17 Feb 2023 09:56:43 -0500
Received: from mail-wr1-f52.google.com ([209.85.221.52]:44837)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1pT2A9-0007xN-0O
 for 61343 <at> debbugs.gnu.org; Fri, 17 Feb 2023 09:56:37 -0500
Received: by mail-wr1-f52.google.com with SMTP id ba10so915768wrb.11
 for <61343 <at> debbugs.gnu.org>; Fri, 17 Feb 2023 06:56:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20210112; t=1676645791;
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:date:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=A2LCfKH/5SaXcgXYU5U98B32MLZGfXffUG43avL/JL0=;
 b=WF3Abz6tSwAF5kOefetkQqeil88+496hj3lnvkgDURqoVSOO6lVI7ofG8i7KBGgE2q
 vpzeyausQYiMOs92FCyfxDxpcjhPrzZvAHzrnsXewLJquPLv6P30FOY84V+MZ2RaKRPp
 020ZZsH/5I3Wmyw2ms1Eh6wJ9fw5jjrIPjPrBMtEs/JdftKxyS6c/oC5Ou5MvjfHXiL9
 h7Uk4ZTXSpZIwQ4AaBYGBXEG/q4dj4kkCGvwl1zV0rFl0QDFxi6y3kkvMMlLGpTvPnyq
 gxIwKZkSQKMo2zn6uwrNftezoxZ+c/T5nX2lexXOuYNv9qd8pfNAFHtBa1RvvqrU6DHt
 gBHQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112; t=1676645791;
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=A2LCfKH/5SaXcgXYU5U98B32MLZGfXffUG43avL/JL0=;
 b=IgPoTolflYAei9X7BMI1Tcm38TgMb9rz+syexRTM3AzDgvGOJ5LBqO9ukowOOZi6eH
 /89BmmSEhJjTwazOWU2xHIOaeuihh1lIXvZx++OF/I/nFZNTYggWs7pm9xMigO34dl0g
 GtCca/zmyUEkyCKcTlgY65g/JhAFz1x/4H9dYrJep6pAAaZl2TxjxYG8CeZ3q+vL3lx7
 G09wZiD05vvtDoOxVs9HJpMsnrnKPSpwmmrIKLw41S0WxF8V9wdDJino3byD9b/51xT3
 Hr2BBEB6n4VCd961Vawew8Sb+xKI+2Ocw4uKpul/RXoKAyoaqARZupP+aPi/gGUvW/3V
 70BQ==
X-Gm-Message-State: AO0yUKXGR+YFBFM1T4xfoDRvaE25PLCp4QnTkyKpMhZOhYbJ8iXfTbSy
 DQZkIYfw2bjjLxgWAw0JIcc=
X-Google-Smtp-Source: AK7set+c5uR0SkGEEZxF3SM9DCrRqp6s1Ctsk1v5+CGFqUy2KgO5msr7SSEyr2a8bFSaNmwKw6Hhng==
X-Received: by 2002:a5d:504c:0:b0:2c5:5e37:653a with SMTP id
 h12-20020a5d504c000000b002c55e37653amr810258wrt.7.1676645790705; 
 Fri, 17 Feb 2023 06:56:30 -0800 (PST)
Received: from localhost.localdomain ([193.48.40.241])
 by smtp.gmail.com with ESMTPSA id
 j2-20020adfea42000000b002c5804b6afasm4495839wrn.67.2023.02.17.06.56.30
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 17 Feb 2023 06:56:30 -0800 (PST)
From: Simon Tournier <zimon.toutoune@HIDDEN>
Date: Fri, 17 Feb 2023 15:56:27 +0100
Message-Id: <20230217145627.85062-1-zimon.toutoune@HIDDEN>
X-Mailer: git-send-email 2.38.1
In-Reply-To: <e0ffbcbb07fe41a04688223342461aa4d3310142.1676582046.git.dev@HIDDEN>
References: <e0ffbcbb07fe41a04688223342461aa4d3310142.1676582046.git.dev@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Fixes <https://bugs.gnu.org/61343>.
Reported by 宋文武 <iyzsong@HIDDEN>.

* guix/scripts/repl.scm (define-command): Before starting the REPL,
run (current-profile) which makes available all channels.
---

Hi,

Instead I am proposing this, it avoids to load all the module.

For testing, once applied to some Guix checkout, just run:

$ ./pre-inst-env guix pull --disable-authentication -C /tmp/channels.scm -p /tmp/new
$ echo '(use-modules (rde features))' | /tmp/new/bin/guix repl /dev/stdin

where /tmp/channels.scm reads,

(list
 (channel
  (name 'rde)
  (url "https://git.sr.ht/~abcdw/rde")
  (introduction
   (make-channel-introduction
    "257cebd587b66e4d865b3537a9a88cccd7107c95"
    (openpgp-fingerprint
     "2841 9AC6 5038 7440 C7E9  2FFA 2208 D209 58C1 DEB0"))))
 (channel
  (name 'guix)
  (url "/home/simon/src/guix/guix")))

tweaking the path to your Guix checkout.

Cheers,
simon


 guix/scripts/repl.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/guix/scripts/repl.scm b/guix/scripts/repl.scm
index 787c63d48e..fc55d79c41 100644
--- a/guix/scripts/repl.scm
+++ b/guix/scripts/repl.scm
@@ -211,6 +211,7 @@ (define script
               ((guile)
                (save-module-excursion
                 (lambda ()
+                  (current-profile) ;Run (%package-module-path) as explained above.
                   (set-user-module)
                   ;; Do not exit repl on SIGINT.
                   ((@@ (ice-9 top-repl) call-with-sigint)

base-commit: cb45e9d0dc6cbe6f69a858f71252411610b4ce82
-- 
2.38.1





Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 17 Feb 2023 15:10:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 17 10:10:35 2023
Received: from localhost ([127.0.0.1]:40997 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pT2Ne-0002FJ-TE
	for submit <at> debbugs.gnu.org; Fri, 17 Feb 2023 10:10:35 -0500
Received: from mail-wm1-f48.google.com ([209.85.128.48]:56291)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1pT2Nd-0002F6-NS
 for control <at> debbugs.gnu.org; Fri, 17 Feb 2023 10:10:34 -0500
Received: by mail-wm1-f48.google.com with SMTP id u16so1157172wml.5
 for <control <at> debbugs.gnu.org>; Fri, 17 Feb 2023 07:10:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20210112; t=1676646627;
 h=subject:from:to:message-id:date:from:to:cc:subject:date:message-id
 :reply-to; bh=AKP4BLA3mdr0jnI7lpP6cvq8tfRQSVtf3xlL0kxk7rM=;
 b=SOBrAH8rGFVx+F8HdNdBV8KPTr4uYX2t3JOm9gZpDZsvZw5WkbS5m0jPzu4ajon3Nj
 ySbN4mOjXqGUrJ2WtOjhN7hs+akopPjuD0wVi8TDGZwTq+8tlS5JS0K3YCPfo4gOl0AA
 CxRuddVBFdpLOrcLHXCc/3koMuiV07DH1WnBx30i41w1eG2qgehnBK+3FNJOrqNOa+IS
 Ra9mpZZf8ZtLPT9hnSHvOZ8YVAXUtxfHQNjYe5XSFfvuMgaHmE3I36e5XSFNx+RdjKpS
 Y0b969vf7cG0rrlHReIiyZxj/iRxzOqG0+lo/6upO9eSFY5oPhU9T+AA6VevlEpDsXAa
 9EDQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112; t=1676646627;
 h=subject:from:to:message-id:date:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=AKP4BLA3mdr0jnI7lpP6cvq8tfRQSVtf3xlL0kxk7rM=;
 b=jAUCAdzGOTDpwfSUhZcCuM5ulb4GpWFSBUwDmwYYEIEiLhkHxuAd0p9FzjExvNZW1o
 /bsvGBdsRhefbV//2MjhUpjZ+r86fQy43Ae2ulsrQEPM+5ldZogM6hR0o/ThRdDE+azb
 tTVwUaqu1sdi8hsmMyKsm9FXQzJndsi/oHT9/0iLpLFnatYq3phZiNJRiFPvxsvLNPmr
 Q/DMT7tSYGwad/fmYBuPOv/6awrS9YvsePhx8/sVCCeYCRy4PnS/S6pxphubQYlCkQAH
 3etR0OKuegL9sIs0+80CGDRffKh/jLF3ermPvzldGe44syaMJvtydokTEKZvjDLmgxvj
 67IQ==
X-Gm-Message-State: AO0yUKWtp1vNTrS3O0nEHmviNkcZ1SjGk4mKKYsXnRYaoz2M3dM0D1N/
 YWnE7dwPzNxTboQ6drDQBe4JRI1Cw9I=
X-Google-Smtp-Source: AK7set/8ufo+Px7//96KtST+lK3a6Y6em+ra5/gSaffCR9Ltz7fA4uY10Za2LMD98Q0zvzKE8btdlw==
X-Received: by 2002:a05:600c:512a:b0:3dd:1cd3:5d75 with SMTP id
 o42-20020a05600c512a00b003dd1cd35d75mr1427337wms.0.1676646627613; 
 Fri, 17 Feb 2023 07:10:27 -0800 (PST)
Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id
 z23-20020a7bc7d7000000b003e2096da239sm6249351wmk.7.2023.02.17.07.10.27
 for <control <at> debbugs.gnu.org>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 17 Feb 2023 07:10:27 -0800 (PST)
Date: Fri, 17 Feb 2023 16:10:17 +0100
Message-Id: <87v8k05nvq.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: Simon Tournier <zimon.toutoune@HIDDEN>
Subject: control message for bug #61574
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

merge 61574 61343
quit





Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#61343: [PATCH] scripts: repl: Load (gnu packages) to set up %load-path.
Resent-From: Simon Tournier <zimon.toutoune@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Fri, 17 Feb 2023 17:17:04 +0000
Resent-Message-ID: <handler.61343.B61343.167665417532615 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 61343
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: patch
To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>, 61343 <at> debbugs.gnu.org, Josselin Poiret <dev@HIDDEN>
Received: via spool by 61343-submit <at> debbugs.gnu.org id=B61343.167665417532615
          (code B ref 61343); Fri, 17 Feb 2023 17:17:04 +0000
Received: (at 61343) by debbugs.gnu.org; 17 Feb 2023 17:16:15 +0000
Received: from localhost ([127.0.0.1]:41455 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pT4LH-0008Tn-9G
	for submit <at> debbugs.gnu.org; Fri, 17 Feb 2023 12:16:15 -0500
Received: from mail-wm1-f43.google.com ([209.85.128.43]:41499)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1pT4LF-0008TR-2A
 for 61343 <at> debbugs.gnu.org; Fri, 17 Feb 2023 12:16:13 -0500
Received: by mail-wm1-f43.google.com with SMTP id
 z1-20020a1c4c01000000b003e206711347so1380840wmf.0
 for <61343 <at> debbugs.gnu.org>; Fri, 17 Feb 2023 09:16:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=Qkic+m8vdpPasElEZM8/GNTr3aXW5EX97CBIdMH0LtY=;
 b=cdB08+aTIGuM8asLBAtWOw8RNVvOCu5YVQkMQwyw+D+fyn2eWdUlSQSeNa9Zf9yN+4
 /2Bd/7og44A8CUwl0iiTJGfdNGPMjkTDWt81WJ46BGyZ4CjaOKj9IECaccdlI3gxICFy
 19OVkMOT8VWVTv3AEQIC0+7GXmFfQ7lQetRe9s9+AfnmG/wXpJCaHLYbP65bA41JPtQl
 zIW9GJVSGk66xrQlGCx8DU1Fx7mKn/VyrqrX+jJJ1xfJKxNXSG3/2V1MBJOLUrqScd1o
 bsRkd4H54tfEjO29ofu3tvsKwbTMz+MKx2t4qua58EL/Symhb/ycCkCbTPwP8P0QNa5a
 bvVA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject
 :date:message-id:reply-to;
 bh=Qkic+m8vdpPasElEZM8/GNTr3aXW5EX97CBIdMH0LtY=;
 b=yKUzLIDRYgXnQ32hAZ+NW4taw/3Ugp9Wu/Lm5UJ2kLeHyaLNLTUt92XU0UFZ875yc1
 6KWBXv1SgjnuCgAQOHvLL3UOPW0EHKiRQQ8KjUgV+aXMCiuAF3kKS7BeAFTifaZO9752
 Up9ePu2tw72qkll4nMbilLJiK1C+3hKpwhRBDyCq/AMeHuAfrv+l8TDRZ1cjbgji+Gb9
 L2kvxMalDQsUDPJo5u6EbEZbt3njkPGf2FphIfL/rd+1+dZ5CuEtXykTxWFhdNJMin1z
 DwAQH5CStMh1ACaEXqyFnOcXqJL9EVYgehmaB0PToyDyAo/0llSvFw6wONL3lJFUQFlh
 C49w==
X-Gm-Message-State: AO0yUKVhXDf6T5bto1FbZeFRQM6RifCtKesCbEXbOK25SJ54njlBHejD
 z3waEFDNQJ4jONNUx/N/L8I=
X-Google-Smtp-Source: AK7set9B9LbQoinJib5qu6R2leWGX6HfBRK/zki3DJ2XtTz67exhX3PSleJS1/g75MUWwggVqivA5A==
X-Received: by 2002:a7b:c3cb:0:b0:3e2:dbb:5627 with SMTP id
 t11-20020a7bc3cb000000b003e20dbb5627mr5732669wmj.3.1676654167108; 
 Fri, 17 Feb 2023 09:16:07 -0800 (PST)
Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id
 j26-20020a05600c1c1a00b003df245cd853sm6329040wms.44.2023.02.17.09.16.06
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 17 Feb 2023 09:16:06 -0800 (PST)
From: Simon Tournier <zimon.toutoune@HIDDEN>
In-Reply-To: <e0ffbcbb07fe41a04688223342461aa4d3310142.1676582046.git.dev@HIDDEN>
References: <87zg9gxda2.fsf@HIDDEN>
 <e0ffbcbb07fe41a04688223342461aa4d3310142.1676582046.git.dev@HIDDEN>
Date: Fri, 17 Feb 2023 16:21:37 +0100
Message-ID: <87h6vk5ncu.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Josselin,

To send my comment as v2, I did:

    git send-email --to=3D"Josselin Poiret via Bug reports for GNU Guix <bu=
g-guix@HIDDEN>"       \
        --to=3D"Simon Tournier <zimon.toutoune@HIDDEN>"                 =
                       \
        --to=3D"=E5=AE=8B=E6=96=87=E6=AD=A6 <iyzsong@HIDDEN>"            =
                                             \
        --to=3D"61343 <at> debbugs.gnu.org"                                     =
                       \
        --cc=3D"Josselin Poiret <dev@HIDDEN>"                         =
                       \
        --in-reply-to=3D"e0ffbcbb07fe41a04688223342461aa4d3310142.167658204=
6.git.dev@HIDDEN" \
        v2-0001-scripts-repl-Extend-REPL-load-path-with-all-chann.patch

well, the keys =E2=80=99cG=E2=80=99 from Emacs-Notmuch. ;-)

The issue is that it triggers a new issue number (that I have merged)
because of,

    "Josselin Poiret via Bug reports for GNU Guix <bug-guix@HIDDEN>"

Well, I am always confused by some Debbugs internals; I thought that
=E2=80=99in-reply-to=E2=80=99 would be enough to avoid the creation of a ne=
w issue.
Hum?

Therefore, my questions are: how do you reply?

And if someone could explain me: Why is Debbugs confused with this
remaining <bug-guix@HIDDEN>?

Cheers,
simon




Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: bug#61343: closed (modules from channels is not available to
 "guix repl")
CC: tracker <at> debbugs.gnu.org
Message-ID: <handler.61343.D61343.16775064996018.ackdone <at> debbugs.gnu.org>
References: <87sferky1k.fsf@HIDDEN> <87k00tlul8.fsf@HIDDEN>
X-Gnu-PR-Message: closed 61343
X-Gnu-PR-Package: guix
X-Gnu-PR-Keywords: patch
Date: Mon, 27 Feb 2023 14:02:02 +0000
Content-Type: multipart/mixed; boundary="----------=_1677506522-6057-0"

This is a multi-part message in MIME format...

------------=_1677506522-6057-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=utf-8

Your message dated Mon, 27 Feb 2023 15:01:11 +0100
with message-id <87sferky1k.fsf@HIDDEN>
and subject line Re: bug#61574: [PATCH v2] scripts: repl: Extend REPL %load=
-path with all channels.
has caused the debbugs.gnu.org bug report #61343,
regarding modules from channels is not available to "guix repl"
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@HIDDEN)


--=20
61343: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D61343
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

------------=_1677506522-6057-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by debbugs.gnu.org; 7 Feb 2023 08:59:15 +0000
Received: from localhost ([127.0.0.1]:51053 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pPJop-0006cX-DH
	for submit <at> debbugs.gnu.org; Tue, 07 Feb 2023 03:59:15 -0500
Received: from lists.gnu.org ([209.51.188.17]:52642)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <iyzsong@HIDDEN>) id 1pPJon-0006cP-Bl
 for submit <at> debbugs.gnu.org; Tue, 07 Feb 2023 03:59:13 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <iyzsong@HIDDEN>) id 1pPJon-0001db-2k
 for bug-guix@HIDDEN; Tue, 07 Feb 2023 03:59:13 -0500
Received: from mail.envs.net ([5.199.136.28])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <iyzsong@HIDDEN>) id 1pPJok-0006mi-Ti
 for bug-guix@HIDDEN; Tue, 07 Feb 2023 03:59:12 -0500
Received: from localhost (mail.envs.net [127.0.0.1])
 by mail.envs.net (Postfix) with ESMTP id ED0A338A04F1
 for <bug-guix@HIDDEN>; Tue,  7 Feb 2023 08:59:00 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa;
 t=1675760340; bh=rNUZ8wdqngL5ihbI2i6ES0T+wjNZErv+wRUCm1ND32Y=;
 h=From:To:Subject:Date:From;
 b=XBAKJ6IpUaoZPYEqWlAriR33jHAmginAE6U/XZCzUeMYnTH40I3Wd2EVUyYRvA5RB
 qsct36t0YJi1JmkvtlC5x5EeLzxdsZGngo++r+Tdy/yUsQm5NNUmppYlI71+dMZ9bP
 x89PM4+QuCqmo9QGefEUHZzpYYE0xfAapTUvpvuL/5cGS4QVZpjJIsXM+mk6pcMum7
 c5FDUoUQnyIsHP2hy9uj5TbEqL/vGEN7/L/hkSydEump/QXr7iKJ95pvZiP1XiPLAn
 m4soGI2tOaWDM4+0ARkHJWIm83lWuze5UeEUM5fgvzVQDmquEfO/z9Vaaas/kOhNY/
 8Dwj3BHVWV2iSsdzislSOhkvTklZ8IUmPFIDvlRFI7hVnfmlnFnxzi0UwpHA13q4Zb
 pfKBGoR4b1ETrHP4YTHdYfHolITc9haVcoDvhqHUtDaEIjIuLec+JcIDyi4svpcO4q
 1Eoq1oNaFLqtswgNZpToacxe5rrAIyja2uOF8AQKdNzj8MbkVXPFy3wlP25LgvA3J5
 5BJ/SLHod2fYe7TTKZY4ZvwtnLGdzOWv5tgcVVTEcLKgZr3bmyI5pENHFNPR/iflVh
 t4Y5VrBby4Sth1rW1jrDPNlvZ4bASrloQup02HRP+yqArELa7BLMRiZdD2BUURdRW7
 vHV+5dcI9yeZ2lY/p6sN/5u8=
X-Virus-Scanned: Debian amavisd-new at mail.envs.net
Received: from mail.envs.net ([127.0.0.1])
 by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id Y37BBRhblrM5 for <bug-guix@HIDDEN>;
 Tue,  7 Feb 2023 08:58:58 +0000 (UTC)
Received: from localhost (unknown [182.150.116.135])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 by mail.envs.net (Postfix) with ESMTPSA
 for <bug-guix@HIDDEN>; Tue,  7 Feb 2023 08:58:58 +0000 (UTC)
Received: from localhost (localhost [local])
 by localhost (OpenSMTPD) with ESMTPA id e2045277
 for <bug-guix@HIDDEN>; Tue, 7 Feb 2023 08:59:15 +0000 (UTC)
From: =?utf-8?B?5a6L5paH5q2m?= <iyzsong@HIDDEN>
To: bug-guix@HIDDEN
Subject: modules from channels is not available to "guix repl"
Date: Tue, 07 Feb 2023 16:59:15 +0800
Message-ID: <87k00tlul8.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=5.199.136.28; envelope-from=iyzsong@HIDDEN;
 helo=mail.envs.net
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

I have add the rde channel to my guix, and "guix pull".
--8<---------------cut here---------------start------------->8---
(cons*
 (channel
  (name 'rde)
  (url "https://git.sr.ht/~abcdw/rde")
  (introduction
   (make-channel-introduction
    "257cebd587b66e4d865b3537a9a88cccd7107c95"
    (openpgp-fingerprint
     "2841 9AC6 5038 7440 C7E9  2FFA 2208 D209 58C1 DEB0"))))
 %default-channels)
--8<---------------cut here---------------end--------------->8---

But then, Run:
  echo '(use-modules (rde features))' | guix repl /dev/stdin
Will get error: no code for module (rde features)

Well, Run:
  echo '(use-modules (gnu packages) (rde features))' | guix repl /dev/stdin
Will pass!



------------=_1677506522-6057-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 61343-done) by debbugs.gnu.org; 27 Feb 2023 14:01:39 +0000
Received: from localhost ([127.0.0.1]:46408 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pWe4R-0001Yz-1Q
	for submit <at> debbugs.gnu.org; Mon, 27 Feb 2023 09:01:39 -0500
Received: from eggs.gnu.org ([209.51.188.92]:38130)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>)
 id 1pWe4O-0001Yg-PB; Mon, 27 Feb 2023 09:01:38 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1pWe4H-0007aw-Ku; Mon, 27 Feb 2023 09:01:29 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=N8s40hS3Lzdbj1msrtIiAa2Gmd8bNWUz+3rWGH3Ko3Q=; b=D59OxAfLOaLivHy4mH61
 VIKFET5nQ/YtaB6u8IKuojdogFw9FW2bsnLfcsFsrdruB0MBxyGB2DxFxmFFq14BwaWNjZoKHkbc7
 0sdTjpYa1SmIsMk7GHyCKBRPxz+wGxDEMsskedbTzILa7vp0WGRsssKkUR5EsSIGjC0unynNYs+tW
 /NJ2qutXQ45HCGDw+gcQLRwztNhMlzlCwbJH6Gk8mE5r1vY/dK5NkNkrI8jv2MCKF72MfXCo1Zut+
 cPgwglBJRzXvK4aP/DUonmRU2fYl4qmkfypQqRLYemvCmg5Paf7cyUKXS3YMBKWYhTRLXhqh6Z3Gh
 e1Mhqp2nRaFNPw==;
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1pWe41-0002n1-KD; Mon, 27 Feb 2023 09:01:27 -0500
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Simon Tournier <zimon.toutoune@HIDDEN>
Subject: Re: bug#61574: [PATCH v2] scripts: repl: Extend REPL %load-path
 with all channels.
References: <e0ffbcbb07fe41a04688223342461aa4d3310142.1676582046.git.dev@HIDDEN>
 <20230217145627.85062-1-zimon.toutoune@HIDDEN>
Date: Mon, 27 Feb 2023 15:01:11 +0100
In-Reply-To: <20230217145627.85062-1-zimon.toutoune@HIDDEN> (Simon
 Tournier's message of "Fri, 17 Feb 2023 15:56:27 +0100")
Message-ID: <87sferky1k.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 61343-done
Cc: Josselin Poiret <dev@HIDDEN>, 61574-done <at> debbugs.gnu.org,
 61343-done <at> debbugs.gnu.org, iyzsong@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Simon,

Simon Tournier <zimon.toutoune@HIDDEN> skribis:

> Fixes <https://bugs.gnu.org/61343>.
> Reported by =E5=AE=8B=E6=96=87=E6=AD=A6 <iyzsong@HIDDEN>.
>
> * guix/scripts/repl.scm (define-command): Before starting the REPL,
> run (current-profile) which makes available all channels.

[...]

> +++ b/guix/scripts/repl.scm
> @@ -211,6 +211,7 @@ (define script
>                ((guile)
>                 (save-module-excursion
>                  (lambda ()
> +                  (current-profile) ;Run (%package-module-path) as expla=
ined above.

I tweaked the comment :-) and applied.

Thanks!

Ludo=E2=80=99.


------------=_1677506522-6057-0--


Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Subject: bug#61343: closed (Re: bug#61574: [PATCH v2] scripts: repl:
 Extend REPL %load-path with all channels.)
Message-ID: <handler.61343.D61343.16775064996018.notifdone <at> debbugs.gnu.org>
References: <87sferky1k.fsf@HIDDEN> <87k00tlul8.fsf@HIDDEN>
X-Gnu-PR-Message: they-closed 61343
X-Gnu-PR-Package: guix
X-Gnu-PR-Keywords: patch
Reply-To: 61343 <at> debbugs.gnu.org
Date: Mon, 27 Feb 2023 14:02:02 +0000
Content-Type: multipart/mixed; boundary="----------=_1677506522-6057-1"

This is a multi-part message in MIME format...

------------=_1677506522-6057-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your bug report

#61343: modules from channels is not available to "guix repl"

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 61343 <at> debbugs.gnu.org.

--=20
61343: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D61343
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

------------=_1677506522-6057-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 61343-done) by debbugs.gnu.org; 27 Feb 2023 14:01:39 +0000
Received: from localhost ([127.0.0.1]:46408 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pWe4R-0001Yz-1Q
	for submit <at> debbugs.gnu.org; Mon, 27 Feb 2023 09:01:39 -0500
Received: from eggs.gnu.org ([209.51.188.92]:38130)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>)
 id 1pWe4O-0001Yg-PB; Mon, 27 Feb 2023 09:01:38 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1pWe4H-0007aw-Ku; Mon, 27 Feb 2023 09:01:29 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=N8s40hS3Lzdbj1msrtIiAa2Gmd8bNWUz+3rWGH3Ko3Q=; b=D59OxAfLOaLivHy4mH61
 VIKFET5nQ/YtaB6u8IKuojdogFw9FW2bsnLfcsFsrdruB0MBxyGB2DxFxmFFq14BwaWNjZoKHkbc7
 0sdTjpYa1SmIsMk7GHyCKBRPxz+wGxDEMsskedbTzILa7vp0WGRsssKkUR5EsSIGjC0unynNYs+tW
 /NJ2qutXQ45HCGDw+gcQLRwztNhMlzlCwbJH6Gk8mE5r1vY/dK5NkNkrI8jv2MCKF72MfXCo1Zut+
 cPgwglBJRzXvK4aP/DUonmRU2fYl4qmkfypQqRLYemvCmg5Paf7cyUKXS3YMBKWYhTRLXhqh6Z3Gh
 e1Mhqp2nRaFNPw==;
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1pWe41-0002n1-KD; Mon, 27 Feb 2023 09:01:27 -0500
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Simon Tournier <zimon.toutoune@HIDDEN>
Subject: Re: bug#61574: [PATCH v2] scripts: repl: Extend REPL %load-path
 with all channels.
References: <e0ffbcbb07fe41a04688223342461aa4d3310142.1676582046.git.dev@HIDDEN>
 <20230217145627.85062-1-zimon.toutoune@HIDDEN>
Date: Mon, 27 Feb 2023 15:01:11 +0100
In-Reply-To: <20230217145627.85062-1-zimon.toutoune@HIDDEN> (Simon
 Tournier's message of "Fri, 17 Feb 2023 15:56:27 +0100")
Message-ID: <87sferky1k.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 61343-done
Cc: Josselin Poiret <dev@HIDDEN>, 61574-done <at> debbugs.gnu.org,
 61343-done <at> debbugs.gnu.org, iyzsong@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Simon,

Simon Tournier <zimon.toutoune@HIDDEN> skribis:

> Fixes <https://bugs.gnu.org/61343>.
> Reported by =E5=AE=8B=E6=96=87=E6=AD=A6 <iyzsong@HIDDEN>.
>
> * guix/scripts/repl.scm (define-command): Before starting the REPL,
> run (current-profile) which makes available all channels.

[...]

> +++ b/guix/scripts/repl.scm
> @@ -211,6 +211,7 @@ (define script
>                ((guile)
>                 (save-module-excursion
>                  (lambda ()
> +                  (current-profile) ;Run (%package-module-path) as expla=
ined above.

I tweaked the comment :-) and applied.

Thanks!

Ludo=E2=80=99.


------------=_1677506522-6057-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by debbugs.gnu.org; 7 Feb 2023 08:59:15 +0000
Received: from localhost ([127.0.0.1]:51053 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pPJop-0006cX-DH
	for submit <at> debbugs.gnu.org; Tue, 07 Feb 2023 03:59:15 -0500
Received: from lists.gnu.org ([209.51.188.17]:52642)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <iyzsong@HIDDEN>) id 1pPJon-0006cP-Bl
 for submit <at> debbugs.gnu.org; Tue, 07 Feb 2023 03:59:13 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <iyzsong@HIDDEN>) id 1pPJon-0001db-2k
 for bug-guix@HIDDEN; Tue, 07 Feb 2023 03:59:13 -0500
Received: from mail.envs.net ([5.199.136.28])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <iyzsong@HIDDEN>) id 1pPJok-0006mi-Ti
 for bug-guix@HIDDEN; Tue, 07 Feb 2023 03:59:12 -0500
Received: from localhost (mail.envs.net [127.0.0.1])
 by mail.envs.net (Postfix) with ESMTP id ED0A338A04F1
 for <bug-guix@HIDDEN>; Tue,  7 Feb 2023 08:59:00 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa;
 t=1675760340; bh=rNUZ8wdqngL5ihbI2i6ES0T+wjNZErv+wRUCm1ND32Y=;
 h=From:To:Subject:Date:From;
 b=XBAKJ6IpUaoZPYEqWlAriR33jHAmginAE6U/XZCzUeMYnTH40I3Wd2EVUyYRvA5RB
 qsct36t0YJi1JmkvtlC5x5EeLzxdsZGngo++r+Tdy/yUsQm5NNUmppYlI71+dMZ9bP
 x89PM4+QuCqmo9QGefEUHZzpYYE0xfAapTUvpvuL/5cGS4QVZpjJIsXM+mk6pcMum7
 c5FDUoUQnyIsHP2hy9uj5TbEqL/vGEN7/L/hkSydEump/QXr7iKJ95pvZiP1XiPLAn
 m4soGI2tOaWDM4+0ARkHJWIm83lWuze5UeEUM5fgvzVQDmquEfO/z9Vaaas/kOhNY/
 8Dwj3BHVWV2iSsdzislSOhkvTklZ8IUmPFIDvlRFI7hVnfmlnFnxzi0UwpHA13q4Zb
 pfKBGoR4b1ETrHP4YTHdYfHolITc9haVcoDvhqHUtDaEIjIuLec+JcIDyi4svpcO4q
 1Eoq1oNaFLqtswgNZpToacxe5rrAIyja2uOF8AQKdNzj8MbkVXPFy3wlP25LgvA3J5
 5BJ/SLHod2fYe7TTKZY4ZvwtnLGdzOWv5tgcVVTEcLKgZr3bmyI5pENHFNPR/iflVh
 t4Y5VrBby4Sth1rW1jrDPNlvZ4bASrloQup02HRP+yqArELa7BLMRiZdD2BUURdRW7
 vHV+5dcI9yeZ2lY/p6sN/5u8=
X-Virus-Scanned: Debian amavisd-new at mail.envs.net
Received: from mail.envs.net ([127.0.0.1])
 by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id Y37BBRhblrM5 for <bug-guix@HIDDEN>;
 Tue,  7 Feb 2023 08:58:58 +0000 (UTC)
Received: from localhost (unknown [182.150.116.135])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 by mail.envs.net (Postfix) with ESMTPSA
 for <bug-guix@HIDDEN>; Tue,  7 Feb 2023 08:58:58 +0000 (UTC)
Received: from localhost (localhost [local])
 by localhost (OpenSMTPD) with ESMTPA id e2045277
 for <bug-guix@HIDDEN>; Tue, 7 Feb 2023 08:59:15 +0000 (UTC)
From: =?utf-8?B?5a6L5paH5q2m?= <iyzsong@HIDDEN>
To: bug-guix@HIDDEN
Subject: modules from channels is not available to "guix repl"
Date: Tue, 07 Feb 2023 16:59:15 +0800
Message-ID: <87k00tlul8.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=5.199.136.28; envelope-from=iyzsong@HIDDEN;
 helo=mail.envs.net
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

I have add the rde channel to my guix, and "guix pull".
--8<---------------cut here---------------start------------->8---
(cons*
 (channel
  (name 'rde)
  (url "https://git.sr.ht/~abcdw/rde")
  (introduction
   (make-channel-introduction
    "257cebd587b66e4d865b3537a9a88cccd7107c95"
    (openpgp-fingerprint
     "2841 9AC6 5038 7440 C7E9  2FFA 2208 D209 58C1 DEB0"))))
 %default-channels)
--8<---------------cut here---------------end--------------->8---

But then, Run:
  echo '(use-modules (rde features))' | guix repl /dev/stdin
Will get error: no code for module (rde features)

Well, Run:
  echo '(use-modules (gnu packages) (rde features))' | guix repl /dev/stdin
Will pass!



------------=_1677506522-6057-1--


Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: bug#61574: closed ([PATCH v2] scripts: repl: Extend REPL
 %load-path with all channels.)
CC: tracker <at> debbugs.gnu.org
Message-ID: <handler.61574.D61343.16775064996018.ackdone <at> debbugs.gnu.org>
References: <87sferky1k.fsf@HIDDEN>
 <20230217145627.85062-1-zimon.toutoune@HIDDEN>
X-Gnu-PR-Message: closed 61574
X-Gnu-PR-Package: guix
X-Gnu-PR-Keywords: patch
Date: Mon, 27 Feb 2023 14:02:02 +0000
Content-Type: multipart/mixed; boundary="----------=_1677506522-6057-2"

This is a multi-part message in MIME format...

------------=_1677506522-6057-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=utf-8

Your message dated Mon, 27 Feb 2023 15:01:11 +0100
with message-id <87sferky1k.fsf@HIDDEN>
and subject line Re: bug#61574: [PATCH v2] scripts: repl: Extend REPL %load=
-path with all channels.
has caused the debbugs.gnu.org bug report #61343,
regarding [PATCH v2] scripts: repl: Extend REPL %load-path with all channel=
s.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@HIDDEN)


--=20
61343: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D61343
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

------------=_1677506522-6057-2
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by debbugs.gnu.org; 17 Feb 2023 14:56:37 +0000
Received: from localhost ([127.0.0.1]:40981 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pT2A8-0007xU-MP
	for submit <at> debbugs.gnu.org; Fri, 17 Feb 2023 09:56:37 -0500
Received: from lists.gnu.org ([209.51.188.17]:46492)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1pT2A7-0007xO-Na
 for submit <at> debbugs.gnu.org; Fri, 17 Feb 2023 09:56:36 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1pT2A7-0006UD-Ay
 for bug-guix@HIDDEN; Fri, 17 Feb 2023 09:56:35 -0500
Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1pT2A5-0002wE-FZ
 for bug-guix@HIDDEN; Fri, 17 Feb 2023 09:56:35 -0500
Received: by mail-wr1-x42c.google.com with SMTP id r25so2332303wrr.5
 for <bug-guix@HIDDEN>; Fri, 17 Feb 2023 06:56:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20210112; t=1676645791;
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:date:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=A2LCfKH/5SaXcgXYU5U98B32MLZGfXffUG43avL/JL0=;
 b=WF3Abz6tSwAF5kOefetkQqeil88+496hj3lnvkgDURqoVSOO6lVI7ofG8i7KBGgE2q
 vpzeyausQYiMOs92FCyfxDxpcjhPrzZvAHzrnsXewLJquPLv6P30FOY84V+MZ2RaKRPp
 020ZZsH/5I3Wmyw2ms1Eh6wJ9fw5jjrIPjPrBMtEs/JdftKxyS6c/oC5Ou5MvjfHXiL9
 h7Uk4ZTXSpZIwQ4AaBYGBXEG/q4dj4kkCGvwl1zV0rFl0QDFxi6y3kkvMMlLGpTvPnyq
 gxIwKZkSQKMo2zn6uwrNftezoxZ+c/T5nX2lexXOuYNv9qd8pfNAFHtBa1RvvqrU6DHt
 gBHQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112; t=1676645791;
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=A2LCfKH/5SaXcgXYU5U98B32MLZGfXffUG43avL/JL0=;
 b=PHq+r7vLG2qxV9mPxlX7wBUJ+1WsXqOeSTWrRd+/rlv2dQE2+jL4D0NstpBTjKcDa8
 P9DSoPBC3UmvOAJ4vJCpjEGvwuu0GtFlvIe5Dv/g6KTODeIFkMbvStsCVZIR4+Qmm46r
 4Huitpo5rH8XdL19FJwx1JOm82qWlXBLeZNAtHJMprV4ThdbE8dS/NF7sVYkxmj9ItsX
 tf8lQjGMx+L84olD+q4xsNXyyam2SDo8QDl9Mf6YViQBlGKorRv95UVQ8PuyWdygY/ja
 SF5UzGL+RoHxNyg/guqh165KTQ6cr1BGQJtmUCbHPixe61zpyfU5X2zAM864hjhca9GB
 7t5Q==
X-Gm-Message-State: AO0yUKWQJT4G16CeUib7kPQ9URfEWv14uuLNaKrUGE81ViES7z8gHWms
 zznlQNCdBReMwPcIW/VPK5kzkaUwVII=
X-Google-Smtp-Source: AK7set+c5uR0SkGEEZxF3SM9DCrRqp6s1Ctsk1v5+CGFqUy2KgO5msr7SSEyr2a8bFSaNmwKw6Hhng==
X-Received: by 2002:a5d:504c:0:b0:2c5:5e37:653a with SMTP id
 h12-20020a5d504c000000b002c55e37653amr810258wrt.7.1676645790705; 
 Fri, 17 Feb 2023 06:56:30 -0800 (PST)
Received: from localhost.localdomain ([193.48.40.241])
 by smtp.gmail.com with ESMTPSA id
 j2-20020adfea42000000b002c5804b6afasm4495839wrn.67.2023.02.17.06.56.30
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 17 Feb 2023 06:56:30 -0800 (PST)
From: Simon Tournier <zimon.toutoune@HIDDEN>
To: Josselin Poiret via Bug reports for GNU Guix <bug-guix@HIDDEN>,
 Simon Tournier <zimon.toutoune@HIDDEN>,
 =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>,
 61343 <at> debbugs.gnu.org
Subject: [PATCH v2] scripts: repl: Extend REPL %load-path with all channels.
Date: Fri, 17 Feb 2023 15:56:27 +0100
Message-Id: <20230217145627.85062-1-zimon.toutoune@HIDDEN>
X-Mailer: git-send-email 2.38.1
In-Reply-To: <e0ffbcbb07fe41a04688223342461aa4d3310142.1676582046.git.dev@HIDDEN>
References: <e0ffbcbb07fe41a04688223342461aa4d3310142.1676582046.git.dev@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2a00:1450:4864:20::42c;
 envelope-from=zimon.toutoune@HIDDEN; helo=mail-wr1-x42c.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
Cc: Josselin Poiret <dev@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Fixes <https://bugs.gnu.org/61343>.
Reported by 宋文武 <iyzsong@HIDDEN>.

* guix/scripts/repl.scm (define-command): Before starting the REPL,
run (current-profile) which makes available all channels.
---

Hi,

Instead I am proposing this, it avoids to load all the module.

For testing, once applied to some Guix checkout, just run:

$ ./pre-inst-env guix pull --disable-authentication -C /tmp/channels.scm -p /tmp/new
$ echo '(use-modules (rde features))' | /tmp/new/bin/guix repl /dev/stdin

where /tmp/channels.scm reads,

(list
 (channel
  (name 'rde)
  (url "https://git.sr.ht/~abcdw/rde")
  (introduction
   (make-channel-introduction
    "257cebd587b66e4d865b3537a9a88cccd7107c95"
    (openpgp-fingerprint
     "2841 9AC6 5038 7440 C7E9  2FFA 2208 D209 58C1 DEB0"))))
 (channel
  (name 'guix)
  (url "/home/simon/src/guix/guix")))

tweaking the path to your Guix checkout.

Cheers,
simon


 guix/scripts/repl.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/guix/scripts/repl.scm b/guix/scripts/repl.scm
index 787c63d48e..fc55d79c41 100644
--- a/guix/scripts/repl.scm
+++ b/guix/scripts/repl.scm
@@ -211,6 +211,7 @@ (define script
               ((guile)
                (save-module-excursion
                 (lambda ()
+                  (current-profile) ;Run (%package-module-path) as explained above.
                   (set-user-module)
                   ;; Do not exit repl on SIGINT.
                   ((@@ (ice-9 top-repl) call-with-sigint)

base-commit: cb45e9d0dc6cbe6f69a858f71252411610b4ce82
-- 
2.38.1




------------=_1677506522-6057-2
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 61343-done) by debbugs.gnu.org; 27 Feb 2023 14:01:39 +0000
Received: from localhost ([127.0.0.1]:46408 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pWe4R-0001Yz-1Q
	for submit <at> debbugs.gnu.org; Mon, 27 Feb 2023 09:01:39 -0500
Received: from eggs.gnu.org ([209.51.188.92]:38130)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>)
 id 1pWe4O-0001Yg-PB; Mon, 27 Feb 2023 09:01:38 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1pWe4H-0007aw-Ku; Mon, 27 Feb 2023 09:01:29 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=N8s40hS3Lzdbj1msrtIiAa2Gmd8bNWUz+3rWGH3Ko3Q=; b=D59OxAfLOaLivHy4mH61
 VIKFET5nQ/YtaB6u8IKuojdogFw9FW2bsnLfcsFsrdruB0MBxyGB2DxFxmFFq14BwaWNjZoKHkbc7
 0sdTjpYa1SmIsMk7GHyCKBRPxz+wGxDEMsskedbTzILa7vp0WGRsssKkUR5EsSIGjC0unynNYs+tW
 /NJ2qutXQ45HCGDw+gcQLRwztNhMlzlCwbJH6Gk8mE5r1vY/dK5NkNkrI8jv2MCKF72MfXCo1Zut+
 cPgwglBJRzXvK4aP/DUonmRU2fYl4qmkfypQqRLYemvCmg5Paf7cyUKXS3YMBKWYhTRLXhqh6Z3Gh
 e1Mhqp2nRaFNPw==;
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1pWe41-0002n1-KD; Mon, 27 Feb 2023 09:01:27 -0500
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Simon Tournier <zimon.toutoune@HIDDEN>
Subject: Re: bug#61574: [PATCH v2] scripts: repl: Extend REPL %load-path
 with all channels.
References: <e0ffbcbb07fe41a04688223342461aa4d3310142.1676582046.git.dev@HIDDEN>
 <20230217145627.85062-1-zimon.toutoune@HIDDEN>
Date: Mon, 27 Feb 2023 15:01:11 +0100
In-Reply-To: <20230217145627.85062-1-zimon.toutoune@HIDDEN> (Simon
 Tournier's message of "Fri, 17 Feb 2023 15:56:27 +0100")
Message-ID: <87sferky1k.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 61343-done
Cc: Josselin Poiret <dev@HIDDEN>, 61574-done <at> debbugs.gnu.org,
 61343-done <at> debbugs.gnu.org, iyzsong@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Simon,

Simon Tournier <zimon.toutoune@HIDDEN> skribis:

> Fixes <https://bugs.gnu.org/61343>.
> Reported by =E5=AE=8B=E6=96=87=E6=AD=A6 <iyzsong@HIDDEN>.
>
> * guix/scripts/repl.scm (define-command): Before starting the REPL,
> run (current-profile) which makes available all channels.

[...]

> +++ b/guix/scripts/repl.scm
> @@ -211,6 +211,7 @@ (define script
>                ((guile)
>                 (save-module-excursion
>                  (lambda ()
> +                  (current-profile) ;Run (%package-module-path) as expla=
ined above.

I tweaked the comment :-) and applied.

Thanks!

Ludo=E2=80=99.


------------=_1677506522-6057-2--


Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Simon Tournier <zimon.toutoune@HIDDEN>
Subject: bug#61574: closed (Re: bug#61574: [PATCH v2] scripts: repl:
 Extend REPL %load-path with all channels.)
Message-ID: <handler.61574.D61343.16775064996018.notifdone <at> debbugs.gnu.org>
References: <87sferky1k.fsf@HIDDEN>
 <20230217145627.85062-1-zimon.toutoune@HIDDEN>
X-Gnu-PR-Message: they-closed 61574
X-Gnu-PR-Package: guix
X-Gnu-PR-Keywords: patch
Reply-To: 61574 <at> debbugs.gnu.org
Date: Mon, 27 Feb 2023 14:02:02 +0000
Content-Type: multipart/mixed; boundary="----------=_1677506522-6057-3"

This is a multi-part message in MIME format...

------------=_1677506522-6057-3
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your bug report

#61343: [PATCH v2] scripts: repl: Extend REPL %load-path with all channels.

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 61574 <at> debbugs.gnu.org.

--=20
61343: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D61343
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

------------=_1677506522-6057-3
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 61343-done) by debbugs.gnu.org; 27 Feb 2023 14:01:39 +0000
Received: from localhost ([127.0.0.1]:46408 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pWe4R-0001Yz-1Q
	for submit <at> debbugs.gnu.org; Mon, 27 Feb 2023 09:01:39 -0500
Received: from eggs.gnu.org ([209.51.188.92]:38130)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>)
 id 1pWe4O-0001Yg-PB; Mon, 27 Feb 2023 09:01:38 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1pWe4H-0007aw-Ku; Mon, 27 Feb 2023 09:01:29 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=N8s40hS3Lzdbj1msrtIiAa2Gmd8bNWUz+3rWGH3Ko3Q=; b=D59OxAfLOaLivHy4mH61
 VIKFET5nQ/YtaB6u8IKuojdogFw9FW2bsnLfcsFsrdruB0MBxyGB2DxFxmFFq14BwaWNjZoKHkbc7
 0sdTjpYa1SmIsMk7GHyCKBRPxz+wGxDEMsskedbTzILa7vp0WGRsssKkUR5EsSIGjC0unynNYs+tW
 /NJ2qutXQ45HCGDw+gcQLRwztNhMlzlCwbJH6Gk8mE5r1vY/dK5NkNkrI8jv2MCKF72MfXCo1Zut+
 cPgwglBJRzXvK4aP/DUonmRU2fYl4qmkfypQqRLYemvCmg5Paf7cyUKXS3YMBKWYhTRLXhqh6Z3Gh
 e1Mhqp2nRaFNPw==;
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1pWe41-0002n1-KD; Mon, 27 Feb 2023 09:01:27 -0500
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Simon Tournier <zimon.toutoune@HIDDEN>
Subject: Re: bug#61574: [PATCH v2] scripts: repl: Extend REPL %load-path
 with all channels.
References: <e0ffbcbb07fe41a04688223342461aa4d3310142.1676582046.git.dev@HIDDEN>
 <20230217145627.85062-1-zimon.toutoune@HIDDEN>
Date: Mon, 27 Feb 2023 15:01:11 +0100
In-Reply-To: <20230217145627.85062-1-zimon.toutoune@HIDDEN> (Simon
 Tournier's message of "Fri, 17 Feb 2023 15:56:27 +0100")
Message-ID: <87sferky1k.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 61343-done
Cc: Josselin Poiret <dev@HIDDEN>, 61574-done <at> debbugs.gnu.org,
 61343-done <at> debbugs.gnu.org, iyzsong@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Simon,

Simon Tournier <zimon.toutoune@HIDDEN> skribis:

> Fixes <https://bugs.gnu.org/61343>.
> Reported by =E5=AE=8B=E6=96=87=E6=AD=A6 <iyzsong@HIDDEN>.
>
> * guix/scripts/repl.scm (define-command): Before starting the REPL,
> run (current-profile) which makes available all channels.

[...]

> +++ b/guix/scripts/repl.scm
> @@ -211,6 +211,7 @@ (define script
>                ((guile)
>                 (save-module-excursion
>                  (lambda ()
> +                  (current-profile) ;Run (%package-module-path) as expla=
ined above.

I tweaked the comment :-) and applied.

Thanks!

Ludo=E2=80=99.


------------=_1677506522-6057-3
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by debbugs.gnu.org; 17 Feb 2023 14:56:37 +0000
Received: from localhost ([127.0.0.1]:40981 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pT2A8-0007xU-MP
	for submit <at> debbugs.gnu.org; Fri, 17 Feb 2023 09:56:37 -0500
Received: from lists.gnu.org ([209.51.188.17]:46492)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1pT2A7-0007xO-Na
 for submit <at> debbugs.gnu.org; Fri, 17 Feb 2023 09:56:36 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1pT2A7-0006UD-Ay
 for bug-guix@HIDDEN; Fri, 17 Feb 2023 09:56:35 -0500
Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1pT2A5-0002wE-FZ
 for bug-guix@HIDDEN; Fri, 17 Feb 2023 09:56:35 -0500
Received: by mail-wr1-x42c.google.com with SMTP id r25so2332303wrr.5
 for <bug-guix@HIDDEN>; Fri, 17 Feb 2023 06:56:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20210112; t=1676645791;
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:date:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=A2LCfKH/5SaXcgXYU5U98B32MLZGfXffUG43avL/JL0=;
 b=WF3Abz6tSwAF5kOefetkQqeil88+496hj3lnvkgDURqoVSOO6lVI7ofG8i7KBGgE2q
 vpzeyausQYiMOs92FCyfxDxpcjhPrzZvAHzrnsXewLJquPLv6P30FOY84V+MZ2RaKRPp
 020ZZsH/5I3Wmyw2ms1Eh6wJ9fw5jjrIPjPrBMtEs/JdftKxyS6c/oC5Ou5MvjfHXiL9
 h7Uk4ZTXSpZIwQ4AaBYGBXEG/q4dj4kkCGvwl1zV0rFl0QDFxi6y3kkvMMlLGpTvPnyq
 gxIwKZkSQKMo2zn6uwrNftezoxZ+c/T5nX2lexXOuYNv9qd8pfNAFHtBa1RvvqrU6DHt
 gBHQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112; t=1676645791;
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=A2LCfKH/5SaXcgXYU5U98B32MLZGfXffUG43avL/JL0=;
 b=PHq+r7vLG2qxV9mPxlX7wBUJ+1WsXqOeSTWrRd+/rlv2dQE2+jL4D0NstpBTjKcDa8
 P9DSoPBC3UmvOAJ4vJCpjEGvwuu0GtFlvIe5Dv/g6KTODeIFkMbvStsCVZIR4+Qmm46r
 4Huitpo5rH8XdL19FJwx1JOm82qWlXBLeZNAtHJMprV4ThdbE8dS/NF7sVYkxmj9ItsX
 tf8lQjGMx+L84olD+q4xsNXyyam2SDo8QDl9Mf6YViQBlGKorRv95UVQ8PuyWdygY/ja
 SF5UzGL+RoHxNyg/guqh165KTQ6cr1BGQJtmUCbHPixe61zpyfU5X2zAM864hjhca9GB
 7t5Q==
X-Gm-Message-State: AO0yUKWQJT4G16CeUib7kPQ9URfEWv14uuLNaKrUGE81ViES7z8gHWms
 zznlQNCdBReMwPcIW/VPK5kzkaUwVII=
X-Google-Smtp-Source: AK7set+c5uR0SkGEEZxF3SM9DCrRqp6s1Ctsk1v5+CGFqUy2KgO5msr7SSEyr2a8bFSaNmwKw6Hhng==
X-Received: by 2002:a5d:504c:0:b0:2c5:5e37:653a with SMTP id
 h12-20020a5d504c000000b002c55e37653amr810258wrt.7.1676645790705; 
 Fri, 17 Feb 2023 06:56:30 -0800 (PST)
Received: from localhost.localdomain ([193.48.40.241])
 by smtp.gmail.com with ESMTPSA id
 j2-20020adfea42000000b002c5804b6afasm4495839wrn.67.2023.02.17.06.56.30
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 17 Feb 2023 06:56:30 -0800 (PST)
From: Simon Tournier <zimon.toutoune@HIDDEN>
To: Josselin Poiret via Bug reports for GNU Guix <bug-guix@HIDDEN>,
 Simon Tournier <zimon.toutoune@HIDDEN>,
 =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>,
 61343 <at> debbugs.gnu.org
Subject: [PATCH v2] scripts: repl: Extend REPL %load-path with all channels.
Date: Fri, 17 Feb 2023 15:56:27 +0100
Message-Id: <20230217145627.85062-1-zimon.toutoune@HIDDEN>
X-Mailer: git-send-email 2.38.1
In-Reply-To: <e0ffbcbb07fe41a04688223342461aa4d3310142.1676582046.git.dev@HIDDEN>
References: <e0ffbcbb07fe41a04688223342461aa4d3310142.1676582046.git.dev@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2a00:1450:4864:20::42c;
 envelope-from=zimon.toutoune@HIDDEN; helo=mail-wr1-x42c.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
Cc: Josselin Poiret <dev@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Fixes <https://bugs.gnu.org/61343>.
Reported by 宋文武 <iyzsong@HIDDEN>.

* guix/scripts/repl.scm (define-command): Before starting the REPL,
run (current-profile) which makes available all channels.
---

Hi,

Instead I am proposing this, it avoids to load all the module.

For testing, once applied to some Guix checkout, just run:

$ ./pre-inst-env guix pull --disable-authentication -C /tmp/channels.scm -p /tmp/new
$ echo '(use-modules (rde features))' | /tmp/new/bin/guix repl /dev/stdin

where /tmp/channels.scm reads,

(list
 (channel
  (name 'rde)
  (url "https://git.sr.ht/~abcdw/rde")
  (introduction
   (make-channel-introduction
    "257cebd587b66e4d865b3537a9a88cccd7107c95"
    (openpgp-fingerprint
     "2841 9AC6 5038 7440 C7E9  2FFA 2208 D209 58C1 DEB0"))))
 (channel
  (name 'guix)
  (url "/home/simon/src/guix/guix")))

tweaking the path to your Guix checkout.

Cheers,
simon


 guix/scripts/repl.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/guix/scripts/repl.scm b/guix/scripts/repl.scm
index 787c63d48e..fc55d79c41 100644
--- a/guix/scripts/repl.scm
+++ b/guix/scripts/repl.scm
@@ -211,6 +211,7 @@ (define script
               ((guile)
                (save-module-excursion
                 (lambda ()
+                  (current-profile) ;Run (%package-module-path) as explained above.
                   (set-user-module)
                   ;; Do not exit repl on SIGINT.
                   ((@@ (ice-9 top-repl) call-with-sigint)

base-commit: cb45e9d0dc6cbe6f69a858f71252411610b4ce82
-- 
2.38.1




------------=_1677506522-6057-3--


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#61343: bug#61574: [PATCH v2] scripts: repl: Extend REPL %load-path with all channels.
Resent-From: Andrew Tropin <andrew@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 02 Mar 2023 13:45:01 +0000
Resent-Message-ID: <handler.61343.D61343.167776467418553 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 61343
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: patch
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Simon Tournier <zimon.toutoune@HIDDEN>
Cc: Josselin Poiret <dev@HIDDEN>, 61343-done <at> debbugs.gnu.org, 61574-done <at> debbugs.gnu.org, iyzsong@HIDDEN
Received: via spool by 61343-done <at> debbugs.gnu.org id=D61343.167776467418553
          (code D ref 61343); Thu, 02 Mar 2023 13:45:01 +0000
Received: (at 61343-done) by debbugs.gnu.org; 2 Mar 2023 13:44:34 +0000
Received: from localhost ([127.0.0.1]:56184 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pXjEX-0004pA-TY
	for submit <at> debbugs.gnu.org; Thu, 02 Mar 2023 08:44:34 -0500
Received: from relay5-d.mail.gandi.net ([217.70.183.197]:42277)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andrew@HIDDEN>)
 id 1pXjEV-0004op-OR; Thu, 02 Mar 2023 08:44:32 -0500
Received: (Authenticated sender: andrew@HIDDEN)
 by mail.gandi.net (Postfix) with ESMTPSA id 55CA71C000E;
 Thu,  2 Mar 2023 13:44:23 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1;
 t=1677764665;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=eQDEKj0XDCsQW27lgqajcBlenTh37+6/ngHC2lWLLRI=;
 b=fG8GmOtrqWkIIi3HOk/o3Lh+tqfILt8VMWjzjJ3AHxQVdyxdzwpaOGMU2atv25yCFI4npb
 uuB3q02kSm6tf+147gYWkFF3A4n6nvszkpYl9xMOf0OqMPqe4PiuF6aZ3EOgGtQ3fF79Y5
 1B8dTFyjnVe0ogcuiBzUOQNe+Es5kD2fWQXystsMbJU1VXQnuVDmOk+AugnfwnordyjX1S
 LpQ2G2xFrNDOC65kd+M/m75jz9sqbrxwkpWgRK3Vbwr/w78CGlrSAF6D40Fpk3w8hVUKLS
 KdtwGEwiIUbr4RjIW8PkoGkDTM0MeJamHfnDmSvWhMXGG7W9/NdRqzUzadACuw==
From: Andrew Tropin <andrew@HIDDEN>
In-Reply-To: <87sferky1k.fsf@HIDDEN>
References: <e0ffbcbb07fe41a04688223342461aa4d3310142.1676582046.git.dev@HIDDEN>
 <20230217145627.85062-1-zimon.toutoune@HIDDEN> <87sferky1k.fsf@HIDDEN>
Date: Thu, 02 Mar 2023 17:44:20 +0400
Message-ID: <87o7pbs1xn.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 2023-02-27 15:01, Ludovic Court=C3=A8s wrote:

> Hi Simon,
>
> Simon Tournier <zimon.toutoune@HIDDEN> skribis:
>
>> Fixes <https://bugs.gnu.org/61343>.
>> Reported by =E5=AE=8B=E6=96=87=E6=AD=A6 <iyzsong@HIDDEN>.
>>
>> * guix/scripts/repl.scm (define-command): Before starting the REPL,
>> run (current-profile) which makes available all channels.
>
> [...]
>
>> +++ b/guix/scripts/repl.scm
>> @@ -211,6 +211,7 @@ (define script
>>                ((guile)
>>                 (save-module-excursion
>>                  (lambda ()
>> +                  (current-profile) ;Run (%package-module-path) as expl=
ained above.
>
> I tweaked the comment :-) and applied.
>
> Thanks!

Hi Simon and Ludo!

Thank you for the patch, I also faced this problem and it seems this
change doesn't fix it.

echo '(use-modules (rde features))' | guix repl /dev/stdin

still fails on a7763e067d86908210758aab80d33e4f8b815b1c.

=2D-=20
Best regards,
Andrew Tropin

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmQAqDQACgkQIgjSCVjB
3rDE6A//axSFCBoXmlCd7bxMl8moMOE19oPSgDYEJ7Ms5NuGSwpSuVctJHJy5Xf4
L7gdFMv5LZ8My8lJ3CsaYkpOXU1pl1wSqAp1zm+b5i7ORffqx/QBEknJeRBFv9d/
nElIWkIlgkg1d0CDs34afomcVy85CCpZ0IXq82aiTi3WXRwlftqevClxPScws8/P
/B/HCPe45TCxgkFycdJDckM2WhOHvhCp8oZZmZa5jDzOmamr9vj/ZXA/oySueC3u
fuLfaHKReT9+r4al92KGGjow0ezHZVzxV27ZHIRQD2ZUAomvlwV/yL1BNg590MIM
p/6i/wGvLMlUbugFyJuHU0Xu/ge71JxCsm3kV2qBGzBFJAeaj+/Z47frLsyxWQTx
+cILD5AHwtTXyFoOGK+F9gLeCU8FNEQRBtlbgfLMjkin7aQBUPFDGOgMpXGAVpfI
PYprUfVTyrE49uv68z58DXocnQsJ2Sx5BrSbxMtcXizbx2XBsX9Cr+1KNMZ5jLHy
VWUHJHJETDrOvdQOhHumPVF8EWZ0SnMXtxgeMUaDmQQriHQuhvAxNWhUkHOlHOOl
vLXQVPs+wS7GEZhP3eJX3DUrvvUkeTVtsnswDQUS2wX6rs/ujKaSDhK9c0nCcRkt
hbO8STr6XgKrPxeoRjtMohp198MBsW0aFcLpjhUreswSD3W8z5U=
=BP2f
-----END PGP SIGNATURE-----
--=-=-=--




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#61343: bug#61574: bug#61343: bug#61574: [PATCH v2] scripts: repl: Extend REPL %load-path with all channels.
Resent-From: Simon Tournier <zimon.toutoune@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 02 Mar 2023 19:49:02 +0000
Resent-Message-ID: <handler.61343.B61343.167778650321234 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 61343
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: patch
To: Andrew Tropin <andrew@HIDDEN>, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Cc: 61574 <at> debbugs.gnu.org, Josselin Poiret <dev@HIDDEN>, 61343 <at> debbugs.gnu.org, iyzsong@HIDDEN
Received: via spool by 61343-submit <at> debbugs.gnu.org id=B61343.167778650321234
          (code B ref 61343); Thu, 02 Mar 2023 19:49:02 +0000
Received: (at 61343) by debbugs.gnu.org; 2 Mar 2023 19:48:23 +0000
Received: from localhost ([127.0.0.1]:58426 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pXouc-0005WG-Qp
	for submit <at> debbugs.gnu.org; Thu, 02 Mar 2023 14:48:23 -0500
Received: from mail-wr1-f49.google.com ([209.85.221.49]:38481)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>)
 id 1pXouZ-0005Ug-3Y; Thu, 02 Mar 2023 14:48:19 -0500
Received: by mail-wr1-f49.google.com with SMTP id h11so233579wrm.5;
 Thu, 02 Mar 2023 11:48:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20210112; t=1677786493;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=VwydRvwNdZdVwsY4EDs916+vpANewIq2LWoJoBiuORQ=;
 b=ZdeIDoWkuq8McnVeOkeGr4VBp8fl71CaI4QSlSEcL3i0L2Q77f0p2aYJsD93E/2wia
 iN2MWuTxzCGJG/3Hh7zvtq8Di5hcTpr360xwN0ml+o2aIQC9kfrUmsCDScrVo+iyRnYu
 8MGfc0xS9etJrS3HdEnJD30etbeSUXrGugB2m0wvocmAG/nkmk46P49+Vojj/a1cpasO
 Pfx4ahjzDDLoezh6kAnYHDzWL4z9lRBgCquevFgWXdI6OI+1ZlmCRrGfuRXHHNtbxJAN
 cYkzs3hXDRFvb541/zwp4siiOqcA6iUsX0Nf1h391DNjeSHJL81MIblssjIT7gelCIIJ
 8R9A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112; t=1677786493;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=VwydRvwNdZdVwsY4EDs916+vpANewIq2LWoJoBiuORQ=;
 b=iuutFwuUHJTLl22Z05oRAvpNhZopFqk+QARbGgXFNbKhXBQ1r6/PnvwnwBQmOVzg8P
 FxPtD7/O6NcSCXxElCrD7BfNo1NVtK1GuMlGU0XK/hs5oHffRBA+dyYb0CTq8yVoQkZU
 ymEQfqX7Ov6syWXocY3fyy+hyPFK5d3QEhZES98/7osorEyEUrxjsWmY+JVeH/Gqvbrp
 j0ZaG4EMFsLKoAhyIizpDrpZzAgE1H8TQLJnQdvohwpJRfS0MunEKSN/bGcpLKI9fw3e
 iiqOrc4EIC1Lp/ZsRs105T79d2xuYBeO+Maln/q3bdpEX0Dm6+rnRda0bqQHdWTLhHmJ
 MrWg==
X-Gm-Message-State: AO0yUKUBQR7dYuHvbhASCzsONJWLUDiKqJ3w11aRL2eUSXSPlNAN5QT8
 0LdyK8YIRd7D2q4FAHPGE0kra7kakbM=
X-Google-Smtp-Source: AK7set/gS3qsR4Ubelc6rYxbG9hAXz2B8ObQ96Uybw9qnJsc0VsSSNxk1OTM/knnJjS0O2WozvqMFg==
X-Received: by 2002:adf:f285:0:b0:2c7:1c4e:1d16 with SMTP id
 k5-20020adff285000000b002c71c4e1d16mr6503716wro.0.1677786493276; 
 Thu, 02 Mar 2023 11:48:13 -0800 (PST)
Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id
 j17-20020adff011000000b002c5a1bd527dsm198419wro.96.2023.03.02.11.48.12
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 02 Mar 2023 11:48:13 -0800 (PST)
From: Simon Tournier <zimon.toutoune@HIDDEN>
In-Reply-To: <87o7pbs1xn.fsf@HIDDEN>
References: <e0ffbcbb07fe41a04688223342461aa4d3310142.1676582046.git.dev@HIDDEN>
 <20230217145627.85062-1-zimon.toutoune@HIDDEN> <87sferky1k.fsf@HIDDEN>
 <87o7pbs1xn.fsf@HIDDEN>
Date: Thu, 02 Mar 2023 20:48:07 +0100
Message-ID: <87cz5rdjew.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,

I reopen the bug.

On jeu., 02 mars 2023 at 17:44, Andrew Tropin <andrew@HIDDEN> wrote:

> Thank you for the patch, I also faced this problem and it seems this
> change doesn't fix it.

Indeed.  I have no clue what I messed up.  Since I removed the Git
worktree, I am not able to investigate the root of my mistake.  I
remember running with =E2=80=99guix repl -q=E2=80=99 for avoiding spurious =
~/.guile
configuration and I remember running =E2=80=9C./pre-inst-env guix pull -p
/tmp/new=E2=80=9D and checking.  Hum?!  Anyway!

My apologies.

Back to the issue:

   1. The patch does not tweak =E2=80=99guix repl script.scm=E2=80=99 but o=
nly the
      interactive part =E2=80=93 which also has the issue, I guess.

   2. The culprit seems (current-profile) which does not correctly load
      %package-module-path as the comment is suggesting,

            ;;                           This in turn ensures that
            ;; (%package-module-path) will contain entries for the channels
            ;; available in the current profile.


Adding (gnu packages) as Josselin suggested but commenting
(current-profile) make channels available both for scripts and
interactive.  For instance this patch works, which means something is
buggy somewhere.

--8<---------------cut here---------------start------------->8---
1 file changed, 5 insertions(+), 2 deletions(-)
guix/scripts/repl.scm | 7 +++++--

modified   guix/scripts/repl.scm
@@ -22,6 +22,7 @@ (define-module (guix scripts repl)
   #:use-module (guix ui)
   #:use-module (guix scripts)
   #:use-module (guix repl)
+  #:use-module (gnu packages)
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-26)
   #:use-module (srfi srfi-37)
@@ -193,7 +194,8 @@ (define script
          ;; 'set-program-arguments'.  This in turn ensures that
          ;; (%package-module-path) will contain entries for the channels
          ;; available in the current profile.
-         (current-profile)
+         (pk 'script)
+                                        ;(current-profile)
=20
          (set-program-arguments script)
          (set-user-module)
@@ -211,7 +213,8 @@ (define script
               ((guile)
                (save-module-excursion
                 (lambda ()
-                  (current-profile) ;Run (%package-module-path) as explain=
ed above.
+                  (pk 'no-script)
+                                        ;(current-profile) ;Run (%package-=
module-path) as explained above.
                   (set-user-module)
                   ;; Do not exit repl on SIGINT.
                   ((@@ (ice-9 top-repl) call-with-sigint)
--8<---------------cut here---------------end--------------->8---


Well, I have tried to debug by adding =E2=80=99pk=E2=80=99 around but I oft=
en get error
when =E2=80=9CComputing Guix derivation=E2=80=9D.  Well, the test-error is =
a long
process here. :-)

As discussed in #42688 [1], instead of
1b179d7876f19f04009a2f9e248ac10711f4c660, the plain call to
(%package-module-path) =E2=80=93 instead of (current-profile) =E2=80=93 fix=
es the issue.

This patch works and avoids the full load of (gnu packages), I guess
twice. :-)

--8<---------------cut here---------------start------------->8---
1 file changed, 3 insertions(+), 3 deletions(-)
guix/scripts/repl.scm | 6 +++---

modified   guix/scripts/repl.scm
@@ -27,7 +27,7 @@ (define-module (guix scripts repl)
   #:use-module (srfi srfi-37)
   #:use-module (ice-9 match)
   #:use-module (rnrs bytevectors)
-  #:autoload   (guix describe) (current-profile)
+  #:autoload   (gnu packages) (%package-module-path)
   #:autoload   (system repl repl) (start-repl)
   #:autoload   (system repl server)
                   (make-tcp-server-socket make-unix-domain-server-socket)
@@ -193,7 +193,7 @@ (define script
          ;; 'set-program-arguments'.  This in turn ensures that
          ;; (%package-module-path) will contain entries for the channels
          ;; available in the current profile.
-         (current-profile)
+         (%package-module-path)
=20
          (set-program-arguments script)
          (set-user-module)
@@ -211,7 +211,7 @@ (define script
               ((guile)
                (save-module-excursion
                 (lambda ()
-                  (current-profile) ;Run (%package-module-path) as explain=
ed above.
+                  (%package-module-path)
                   (set-user-module)
                   ;; Do not exit repl on SIGINT.
                   ((@@ (ice-9 top-repl) call-with-sigint)
--8<---------------cut here---------------end--------------->8---


1: <https://issues.guix.gnu.org/issue/42688>


Cheers,
simon




Message received at fakecontrol@fakecontrolmessage:


Received: (at fakecontrol) by fakecontrolmessage;
To: internal_control <at> debbugs.gnu.org
From: Debbugs Internal Request <help-debbugs@HIDDEN>
Subject: Internal Control
Message-Id: Did not alter fixed versions and reopened.
Date: Thu, 02 Mar 2023 19:49:03 +0000
User-Agent: Fakemail v42.6.9

# This is a fake control message.
#
# The action:
# Did not alter fixed versions and reopened.
thanks
# This fakemail brought to you by your local debbugs
# administrator


Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 2 Mar 2023 19:48:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 02 14:48:21 2023
Received: from localhost ([127.0.0.1]:58422 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pXoua-0005Vp-SU
	for submit <at> debbugs.gnu.org; Thu, 02 Mar 2023 14:48:21 -0500
Received: from mail-wm1-f41.google.com ([209.85.128.41]:43910)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1pXouY-0005UY-Bo
 for control <at> debbugs.gnu.org; Thu, 02 Mar 2023 14:48:18 -0500
Received: by mail-wm1-f41.google.com with SMTP id
 l7-20020a05600c4f0700b003e79fa98ce1so69435wmq.2
 for <control <at> debbugs.gnu.org>; Thu, 02 Mar 2023 11:48:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20210112; t=1677786492;
 h=subject:from:to:message-id:date:from:to:cc:subject:date:message-id
 :reply-to; bh=9LtzS07MpN6XyL/JT3p9YtAELjjVSHd6phuyUronMAU=;
 b=JShinWS6x5SdWX/3VaT/XvFltk1xE1jvFbpjJZPyNaIzRFYGXIM5KoDLdI4C/L/dfq
 GmybZNWY6pbegUVVYjCGFtze7ICopS5Aux6FOXQAuwdKf6PkslLTQkO6fdcX7vZ3I9T3
 K3yk2iEuawDBuGjYngGK2I0S8J+Da6eWB9INWVHwMsiIKjwuDT+pFmtdIzAnrDsnWwQG
 o2O6ziNXWr/Ogj0AcRbZAJy/2XNkthg1VDpzg+ZLAaJryO7yHWDPS9CQRJFcZKFTSw6r
 YqCQLnQ1KJ1vOPBBYWZpi9WhqDstUxzEcbtR0Nuea8VDoi6154PCcQkyZEVPjBRBDbZh
 i4dg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112; t=1677786492;
 h=subject:from:to:message-id:date:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=9LtzS07MpN6XyL/JT3p9YtAELjjVSHd6phuyUronMAU=;
 b=uny+ymlfsx78fX/aG3E0eLBi99Z/HUy1wk7/huQS0aiSu3MX9FIi2rsinVBC9q2I34
 d66tNQwjRspYrpkHrcxtJ326mOyaDOODU8WEOk/1yedt2puFYvpg752SV9tGVjO5Xbv9
 /PRkEIIh2hWFBMrQHysUJuEEeRlLLoSMOpC2+lVLE8hX5wfliJ8W7/afAx0eDsel58P6
 Uou1GTkIKroQNesUSQBC7ZK7N/jdZsGRLNo1PZL5Gj41wKX/KHQKeledTDU8c/6P630X
 Aabi/toe927zdzlxACrOh2vT6rp4zjukacfhkjBObRFP8BrYzaFwppCabM81HaBYlOw5
 Fpng==
X-Gm-Message-State: AO0yUKV1l6Ih2uMp2WZ3PhwEKejGcNVkJlz2RiauwbmxQdKcvhAE8NlH
 /cu1HwE69lp+/rDNF8E2lG4RifsyTUc=
X-Google-Smtp-Source: AK7set/zWL3y4+GxKKGBvff/PO3n08o/iv7yzVI/1RgQy1HfmtHHwzS5pRx1YXqu9bD6vEzxOeYqAg==
X-Received: by 2002:a05:600c:3506:b0:3dc:5032:2895 with SMTP id
 h6-20020a05600c350600b003dc50322895mr9596765wmq.0.1677786492575; 
 Thu, 02 Mar 2023 11:48:12 -0800 (PST)
Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id
 h12-20020a05600c314c00b003dfee43863fsm4291292wmo.26.2023.03.02.11.48.12
 for <control <at> debbugs.gnu.org>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 02 Mar 2023 11:48:12 -0800 (PST)
Date: Thu, 02 Mar 2023 19:04:22 +0100
Message-Id: <871qm7f2s9.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: Simon Tournier <zimon.toutoune@HIDDEN>
Subject: control message for bug #61574
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

reopen 61574
tags 61574 - fixed patch
quit






Last modified: Thu, 2 Mar 2023 20:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.