guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/10: scripts: repl: Extend REPL %load-path with all channels.


From: guix-commits
Subject: 03/10: scripts: repl: Extend REPL %load-path with all channels.
Date: Mon, 27 Feb 2023 10:00:32 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 96739561b87db592716431953cfbbb614e8ff87a
Author: Simon Tournier <zimon.toutoune@gmail.com>
AuthorDate: Fri Feb 17 15:56:27 2023 +0100

    scripts: repl: Extend REPL %load-path with all channels.
    
    Fixes <https://bugs.gnu.org/61343>.
    Reported by 宋文武 <iyzsong@envs.net>.
    
    * guix/scripts/repl.scm (define-command): Before starting the REPL,
    call 'current-profile' to populate (%package-module-path).
    
    Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
 guix/scripts/repl.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/guix/scripts/repl.scm b/guix/scripts/repl.scm
index 787c63d48e..0b978ae35f 100644
--- a/guix/scripts/repl.scm
+++ b/guix/scripts/repl.scm
@@ -211,6 +211,7 @@ call THUNK."
               ((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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]