From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 07 03:59:15 2023 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 ) id 1pPJop-0006cX-DH for submit@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 ) id 1pPJon-0006cP-Bl for submit@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 ) id 1pPJon-0001db-2k for bug-guix@gnu.org; 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 ) id 1pPJok-0006mi-Ti for bug-guix@gnu.org; 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 ; 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 ; 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 ; Tue, 7 Feb 2023 08:58:58 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id e2045277 for ; Tue, 7 Feb 2023 08:59:15 +0000 (UTC) From: =?utf-8?B?5a6L5paH5q2m?= To: bug-guix@gnu.org Subject: modules from channels is not available to "guix repl" Date: Tue, 07 Feb 2023 16:59:15 +0800 Message-ID: <87k00tlul8.fsf@envs.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=5.199.136.28; envelope-from=iyzsong@envs.net; 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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! From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 14 14:25:21 2023 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 ) id 1pS0vZ-0002Tr-BO for submit@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 ) id 1pS0vU-0002Su-Kd for 61343@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@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 To: =?utf-8?B?5a6L5paH5q2m?= , 61343@debbugs.gnu.org Subject: Re: bug#61343: modules from channels is not available to "guix repl" In-Reply-To: <87k00tlul8.fsf@envs.net> References: <87k00tlul8.fsf@envs.net> Date: Tue, 14 Feb 2023 20:22:45 +0100 Message-ID: <87zg9gxda2.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61343 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 16 16:15:01 2023 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 ) id 1pSlam-0007zU-VM for submit@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 ) id 1pSlak-0007zD-EC for 61343@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 To: Simon Tournier , =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , 61343@debbugs.gnu.org Subject: [PATCH] scripts: repl: Load (gnu packages) to set up %load-path. Date: Thu, 16 Feb 2023 22:14:49 +0100 Message-Id: In-Reply-To: <87zg9gxda2.fsf@gmail.com> References: <87zg9gxda2.fsf@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Authentication-Results: jpoiret.xyz; auth=pass smtp.auth=jpoiret@jpoiret.xyz smtp.mailfrom=dev@jpoiret.xyz X-Spam-Level: ****** X-Spamd-Bar: ++++++ X-Spam: Yes X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61343 Cc: Josselin Poiret X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 16 22:10:05 2023 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 ) id 1pSr8O-0001B7-RR for submit@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 ) id 1pSr8N-0001Av-2V for 61343@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?B?5a6L5paH5q2m?= To: Josselin Poiret Subject: Re: [PATCH] scripts: repl: Load (gnu packages) to set up %load-path. References: <87zg9gxda2.fsf@gmail.com> Date: Fri, 17 Feb 2023 11:09:53 +0800 In-Reply-To: (Josselin Poiret's message of "Thu, 16 Feb 2023 22:14:49 +0100") Message-ID: <87cz69ugvy.fsf@envs.net> 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-Debbugs-Envelope-To: 61343 Cc: 61343@debbugs.gnu.org, Simon Tournier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Josselin Poiret 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! From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 17 09:56:43 2023 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 ) id 1pT2AF-0007xg-31 for submit@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 ) id 1pT2A9-0007xN-0O for 61343@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@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 To: Josselin Poiret via Bug reports for GNU Guix , Simon Tournier , =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , 61343@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@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61343 Cc: Josselin Poiret X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Fixes . Reported by 宋文武 . * 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 17 10:10:35 2023 Received: (at control) by debbugs.gnu.org; 17 Feb 2023 15:10:35 +0000 Received: from localhost ([127.0.0.1]:40997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pT2Ne-0002FJ-TE for submit@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 ) id 1pT2Nd-0002F6-NS for control@debbugs.gnu.org; Fri, 17 Feb 2023 10:10:34 -0500 Received: by mail-wm1-f48.google.com with SMTP id u16so1157172wml.5 for ; 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 (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@gmail.com> To: control@debbugs.gnu.org From: Simon Tournier Subject: control message for bug #61574 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) merge 61574 61343 quit From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 17 12:16:15 2023 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 ) id 1pT4LH-0008Tn-9G for submit@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 ) id 1pT4LF-0008TR-2A for 61343@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@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 To: =?utf-8?B?5a6L5paH5q2m?= , 61343@debbugs.gnu.org, Josselin Poiret Subject: Re: bug#61343: [PATCH] scripts: repl: Load (gnu packages) to set up %load-path. In-Reply-To: References: <87zg9gxda2.fsf@gmail.com> Date: Fri, 17 Feb 2023 16:21:37 +0100 Message-ID: <87h6vk5ncu.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61343 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 " \ --to=3D"Simon Tournier " = \ --to=3D"=E5=AE=8B=E6=96=87=E6=AD=A6 " = \ --to=3D"61343@debbugs.gnu.org" = \ --cc=3D"Josselin Poiret " = \ --in-reply-to=3D"e0ffbcbb07fe41a04688223342461aa4d3310142.167658204= 6.git.dev@jpoiret.xyz" \ 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 " 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 ? Cheers, simon From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 27 09:01:39 2023 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 ) id 1pWe4R-0001Yz-1Q for submit@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 ) 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 ) 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 ) id 1pWe41-0002n1-KD; Mon, 27 Feb 2023 09:01:27 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Simon Tournier Subject: Re: bug#61574: [PATCH v2] scripts: repl: Extend REPL %load-path with all channels. References: <20230217145627.85062-1-zimon.toutoune@gmail.com> Date: Mon, 27 Feb 2023 15:01:11 +0100 In-Reply-To: <20230217145627.85062-1-zimon.toutoune@gmail.com> (Simon Tournier's message of "Fri, 17 Feb 2023 15:56:27 +0100") Message-ID: <87sferky1k.fsf@gnu.org> 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 , 61574-done@debbugs.gnu.org, 61343-done@debbugs.gnu.org, iyzsong@envs.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Simon, Simon Tournier skribis: > Fixes . > Reported by =E5=AE=8B=E6=96=87=E6=AD=A6 . > > * 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 02 08:44:34 2023 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 ) id 1pXjEX-0004pA-TY for submit@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 ) id 1pXjEV-0004op-OR; Thu, 02 Mar 2023 08:44:32 -0500 Received: (Authenticated sender: andrew@trop.in) 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 To: Ludovic =?utf-8?Q?Court=C3=A8s?= , Simon Tournier Subject: Re: bug#61343: bug#61574: [PATCH v2] scripts: repl: Extend REPL %load-path with all channels. In-Reply-To: <87sferky1k.fsf@gnu.org> References: <20230217145627.85062-1-zimon.toutoune@gmail.com> <87sferky1k.fsf@gnu.org> Date: Thu, 02 Mar 2023 17:44:20 +0400 Message-ID: <87o7pbs1xn.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61343-done Cc: Josselin Poiret , 61343-done@debbugs.gnu.org, 61574-done@debbugs.gnu.org, iyzsong@envs.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 skribis: > >> Fixes . >> Reported by =E5=AE=8B=E6=96=87=E6=AD=A6 . >> >> * 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----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 02 14:48:23 2023 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 ) id 1pXouc-0005WG-Qp for submit@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 ) 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 To: Andrew Tropin , Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#61574: bug#61343: bug#61574: [PATCH v2] scripts: repl: Extend REPL %load-path with all channels. In-Reply-To: <87o7pbs1xn.fsf@trop.in> References: <20230217145627.85062-1-zimon.toutoune@gmail.com> <87sferky1k.fsf@gnu.org> <87o7pbs1xn.fsf@trop.in> Date: Thu, 02 Mar 2023 20:48:07 +0100 Message-ID: <87cz5rdjew.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61343 Cc: 61574@debbugs.gnu.org, Josselin Poiret , 61343@debbugs.gnu.org, iyzsong@envs.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, I reopen the bug. On jeu., 02 mars 2023 at 17:44, Andrew Tropin 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: Cheers, simon From unknown Sat Jun 14 19:38:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 02 14:48:21 2023 Received: (at control) by debbugs.gnu.org; 2 Mar 2023 19:48:21 +0000 Received: from localhost ([127.0.0.1]:58422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXoua-0005Vp-SU for submit@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 ) id 1pXouY-0005UY-Bo for control@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 ; 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 (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@gmail.com> To: control@debbugs.gnu.org From: Simon Tournier Subject: control message for bug #61574 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) reopen 61574 tags 61574 - fixed patch quit From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 03 06:14:13 2023 Received: (at 61343) by debbugs.gnu.org; 3 Mar 2023 11:14:13 +0000 Received: from localhost ([127.0.0.1]:59800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pY3Ma-00024h-QD for submit@debbugs.gnu.org; Fri, 03 Mar 2023 06:14:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pY3MY-00024O-Ex; Fri, 03 Mar 2023 06:14:10 -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 ) id 1pY3MS-0000i5-8K; Fri, 03 Mar 2023 06:14:04 -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=QIKD2EBmikXYbHT8ZFBbGjMrsBmmTa813UCmiKiPj8c=; b=j2G1rwzG1ZptmtbClCOe sbWjejHZi+A8HtTAbhH5ldT1eZIi97i4GdDXRWEDR36eFduKHwmYAYmrNQ5INdY93XkaFg90YY1+t Aatme2uEtUBlLGLbaPaX9mjnZkNefVCP6tvgVsWlswNNR91FRUCSqICOjq1atzRHuDfs/MYFy/DLg Uy88zHtk9n70gLu5k0qosFd2TsaXbJ58har8PDtjssHLkhv0FembcbrwQPlZUAe0U2NN6g9AmVQtE 6ccssI1hQ/EF52Iy3TjDndviN/cxsxIitEmawxTdXlSbwBudryx4GpnzskQH68VFMo4v4PfJUyAln WAX1weP9zGiEog==; 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 ) id 1pY3MQ-0003we-O6; Fri, 03 Mar 2023 06:14:03 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Simon Tournier Subject: Re: bug#61574: bug#61343: bug#61574: [PATCH v2] scripts: repl: Extend REPL %load-path with all channels. References: <20230217145627.85062-1-zimon.toutoune@gmail.com> <87sferky1k.fsf@gnu.org> <87o7pbs1xn.fsf@trop.in> <87cz5rdjew.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Tridi 13 =?utf-8?Q?Vent=C3=B4se?= an 231 de la =?utf-8?Q?R=C3=A9volution=2C?= jour de la Fumeterre X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 03 Mar 2023 12:14:00 +0100 In-Reply-To: <87cz5rdjew.fsf@gmail.com> (Simon Tournier's message of "Thu, 02 Mar 2023 20:48:07 +0100") Message-ID: <875ybixf2f.fsf@gnu.org> 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 Cc: 61574@debbugs.gnu.org, Josselin Poiret , 61343@debbugs.gnu.org, iyzsong@envs.net, Andrew Tropin X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Simon Tournier skribis: > 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) Per the comment right above, this change would break the program name memoization, wouldn=E2=80=99t it? Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 03 00:55:12 2024 Received: (at 61343) by debbugs.gnu.org; 3 Mar 2024 05:55:12 +0000 Received: from localhost ([127.0.0.1]:39636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rgeoZ-0007Xg-Lc for submit@debbugs.gnu.org; Sun, 03 Mar 2024 00:55:12 -0500 Received: from mail-108-mta99.mxroute.com ([136.175.108.99]:36349) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rgeoV-0007XW-LO for 61343@debbugs.gnu.org; Sun, 03 Mar 2024 00:55:10 -0500 Received: from filter006.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta99.mxroute.com (ZoneMTA) with ESMTPSA id 18e02e0e8220003bea.001 for <61343@debbugs.gnu.org> (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sun, 03 Mar 2024 05:54:37 +0000 X-Zone-Loop: 5bb24a9ba462deb435fd53342221a073022e157ea6fd X-Originating-IP: [136.175.111.2] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Type:MIME-Version:Message-ID:Date: Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=TEK/OBwPRlNOFFj6AGFcIWtRYfzoYj6zwxDeuLuqlZY=; b=i8PmobKKeAiGPdZ2M0uOffbkHW oI1BXj6g57dhYfvP+dwaSgCz+bLw+MLYeYMRqGX3ev7G95dpfo/oNLgytuI6ZBS9LH8oKJr5nqjX+ OWURFFByfAkVotxVW9Lo5kAB47QiHijUqf8xKADG00sADgX2svYePGeBFEbzge04y760ZjGDlLaJ1 cLOi/2U4l8QkF3nJFBYpEuV6RHQxB1hSsFcv3TEI9bJBnquCXD7LdJITrZj7Lx8cBPg6FEwHSnD9q HiHctIOGfHjS1EPMFoyJbbygCy7KdEMn9MfuAL60WUvxk/knkNNGHyEVG31DxM0+i7906duMYlkCs dwGBeEYA==; From: Richard Sent To: 61343@debbugs.gnu.org Subject: Re: bug#61574: bug#61343: bug#61574: [PATCH] scripts: repl: Extend REPL %load-path with all channels. For real. Date: Sun, 03 Mar 2024 00:54:25 -0500 Message-ID: <87cysbc12m.fsf@freakingpenguin.com> MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Id: richard@freakingpenguin.com X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 61343 Cc: dev@jpoiret.xyz, zimon.toutoune@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I'm not sure as to the comments regarding program name memoization, but could the solution be as simple as adding the call to (%package-module-path) without deleting (current-profile)? There's probably a more elegant solution, but I found that this patch resolved the issue: --8<---------------cut here---------------start------------->8--- guix/scripts/repl.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guix/scripts/repl.scm b/guix/scripts/repl.scm index cb71e59b05..c8e875eb05 100644 --- a/guix/scripts/repl.scm +++ b/guix/scripts/repl.scm @@ -26,6 +26,7 @@ (define-module (guix scripts repl) #:use-module (srfi srfi-37) #:use-module (ice-9 match) #: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) @@ -192,8 +193,8 @@ (define-command (guix-repl . args) ;; (%package-module-path) will contain entries for the channels ;; available in the current profile. (current-profile) - (set-program-arguments script) + (%package-module-path) (set-user-module) ;; When passed a relative file name, 'load-in-vicinity' searches the @@ -209,7 +210,6 @@ (define-command (guix-repl . args) ((guile) (save-module-excursion (lambda () - (current-profile) ;populate (%package-module-path); see above (set-user-module) ;; Do not exit repl on SIGINT. ((@@ (ice-9 top-repl) call-with-sigint) base-commit: 6f5ea7ac1acb3d1c53baf7620cca66cc87fe5a73 -- 2.41.0 --8<---------------cut here---------------end--------------->8--- The previous fix in 96739561b87db592716431953cfbbb614e8ff87a did not matter in my testing, so with that + earlier discussion I removed the second (current-profile) call. I have a barebones channel set up at https://git.sr.ht/~freakingpenguin/channel-demo if it's of any help for reproducing the issue. Just a couple of Guile scripts + guix time-machine wrappers. -- Take it easy, Richard Sent Making my computer weirder one commit at a time.