From: "宋文武 via Bug reports for GNU Guix" <bug-guix@gnu.org>
To: Josselin Poiret <dev@jpoiret.xyz>
Cc: 61343@debbugs.gnu.org, Simon Tournier <zimon.toutoune@gmail.com>
Subject: bug#61343: [PATCH] scripts: repl: Load (gnu packages) to set up %load-path.
Date: Fri, 17 Feb 2023 11:09:53 +0800 [thread overview]
Message-ID: <87cz69ugvy.fsf@envs.net> (raw)
In-Reply-To: <e0ffbcbb07fe41a04688223342461aa4d3310142.1676582046.git.dev@jpoiret.xyz> (Josselin Poiret's message of "Thu, 16 Feb 2023 22:14:49 +0100")
Josselin Poiret <dev@jpoiret.xyz> 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!
next prev parent reply other threads:[~2023-02-17 3:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-07 8:59 bug#61343: modules from channels is not available to "guix repl" 宋文武 via Bug reports for GNU Guix
2023-02-14 19:22 ` Simon Tournier
2023-02-16 21:14 ` bug#61343: [PATCH] scripts: repl: Load (gnu packages) to set up %load-path Josselin Poiret via Bug reports for GNU Guix
2023-02-17 3:09 ` 宋文武 via Bug reports for GNU Guix [this message]
2023-02-17 14:56 ` bug#61574: [PATCH v2] scripts: repl: Extend REPL %load-path with all channels Simon Tournier
2023-02-27 14:01 ` bug#61343: " Ludovic Courtès
2023-03-02 13:44 ` bug#61574: " Andrew Tropin
2023-03-02 19:48 ` bug#61343: " Simon Tournier
2023-03-03 11:14 ` Ludovic Courtès
2023-02-17 15:21 ` bug#61343: [PATCH] scripts: repl: Load (gnu packages) to set up %load-path Simon Tournier
2024-03-03 5:54 ` bug#61343: bug#61574: bug#61343: bug#61574: [PATCH] scripts: repl: Extend REPL %load-path with all channels. For real Richard Sent
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87cz69ugvy.fsf@envs.net \
--to=bug-guix@gnu.org \
--cc=61343@debbugs.gnu.org \
--cc=dev@jpoiret.xyz \
--cc=iyzsong@envs.net \
--cc=zimon.toutoune@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.