From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id UAsqDOQQ5GXVIwEAe85BDQ:P1 (envelope-from ) for ; Sun, 03 Mar 2024 06:55:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id UAsqDOQQ5GXVIwEAe85BDQ (envelope-from ) for ; Sun, 03 Mar 2024 06:55:48 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=i8PmobKK; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709445348; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=TEK/OBwPRlNOFFj6AGFcIWtRYfzoYj6zwxDeuLuqlZY=; b=CKRT1aZaaPNfJHoDDaBCd2TE0we/p035N5KgtkEn/5wqTK5w//gniP5gYf4zaPHxyeq6XN 54n9YWMjVxNycsvpZnAyUdkA/ytyx5h81i1d2PH23itklCgFxZtoF2PQY1PAeif8SYAunq 9mz1NQJL0VhCzmKWeVRFeSm4jJuUd1BpqlS1YSZnSE4uOCF2dBya9UYWH9wNXzKDXzUMjY dy4GruF3CNbxfeLiJXJF8JsAJalB4yJVgU7Kv8jLf4mlXiMRTDWaZtvo4w9WJeY+ZGNL19 FUgVuXgts33TATfdLcb38xPFCmFcf7NQC2VTtEu0O5d62isGhXEhQ+4jyQNQ5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=i8PmobKK; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709445348; a=rsa-sha256; cv=none; b=POcE5CGD3Kk5ILS9FzANOhmzbnspNqEj4XXr3b8kShpot39Nxn8WhRbYxgtInjkuQwApow ZqbkNemGWkH04cyQ1Cq8el6w0tW4oE1MTTywQ/DmiDnapmSMvZoYRVGQd/UzMR/ESYPVVP 1UjavO6VXdIkGgSYv0pyYEBioho5o+WXCl/+3iyhBcyvLlbo5p592r+8rNC/zETArZCnk2 iBz2w1K0+EgH4kf0V9iwjE2hxEe6te+ANa3yVixwhq3n5fmFVSSAQtMYf0i7GFBqVafstr W5xYGhx9fgaJ1rziEoT2+A0kZJwDKVXdxHkP3YKJDDMseSM95UW7Nk+bawUwCw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B60A921B75 for ; Sun, 3 Mar 2024 06:55:47 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rgeoy-0004jv-CF; Sun, 03 Mar 2024 00:55: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 ) id 1rgeow-0004jV-9h for bug-guix@gnu.org; Sun, 03 Mar 2024 00:55:34 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rgeow-00056s-0H for bug-guix@gnu.org; Sun, 03 Mar 2024 00:55:34 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rgepN-0007Yu-Si for bug-guix@gnu.org; Sun, 03 Mar 2024 00:56:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#61343: bug#61574: bug#61343: bug#61574: [PATCH] scripts: repl: Extend REPL %load-path with all channels. For real. References: <87k00tlul8.fsf@envs.net> In-Reply-To: <87k00tlul8.fsf@envs.net> Resent-From: Richard Sent Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 03 Mar 2024 05:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61343 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 61343@debbugs.gnu.org Cc: dev@jpoiret.xyz, zimon.toutoune@gmail.com Received: via spool by 61343-submit@debbugs.gnu.org id=B61343.170944531229000 (code B ref 61343); Sun, 03 Mar 2024 05:56:01 +0000 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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.27 X-Spam-Score: -6.27 X-Migadu-Queue-Id: B60A921B75 X-TUID: 1/u1Bcwo+eXk 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.