mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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>
This commit is contained in:
parent
a516a0ba93
commit
96739561b8
1 changed files with 1 additions and 0 deletions
|
@ -211,6 +211,7 @@ call THUNK."
|
||||||
((guile)
|
((guile)
|
||||||
(save-module-excursion
|
(save-module-excursion
|
||||||
(lambda ()
|
(lambda ()
|
||||||
|
(current-profile) ;populate (%package-module-path); see above
|
||||||
(set-user-module)
|
(set-user-module)
|
||||||
;; Do not exit repl on SIGINT.
|
;; Do not exit repl on SIGINT.
|
||||||
((@@ (ice-9 top-repl) call-with-sigint)
|
((@@ (ice-9 top-repl) call-with-sigint)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue