all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tomas Volf <~@wolfsden.cz>
To: help-guix@gnu.org
Subject: Why are custom channels not available to guix repl?
Date: Fri, 12 Jul 2024 10:11:43 +0200	[thread overview]
Message-ID: <ZpDlP6XHxV3Kky8n@ws> (raw)

[-- Attachment #1: Type: text/plain, Size: 3217 bytes --]

Hello,

I do not understand the behavior of `guix repl', so I hope someone will be able
to advice on it.  I have pulled custom channels, correctly as far as I can say:

    ~ $ which guix
    /home/wolf/.config/guix/current/bin/guix
    ~ $ guix describe
    Generation 123	Jul 10 2024 12:08:29	(current)
      guix efce95e
        repository URL: https://git.wolfsden.cz/.git/guix
        branch: master
        commit: efce95ec77afec0cfc797d4802e329fdb815f26e
      wolfsden cf8ec30
        repository URL: https://git.wolfsden.cz/.git/wolfsden
        branch: master
        commit: cf8ec30359010e9a6a0436f4e5eec51bc9c6edbc
      nonguix 9fe6f07
        repository URL: https://gitlab.com/nonguix/nonguix
        branch: master
        commit: 9fe6f0751bf5770ef4b2afa7bca0b7e51e1382fd

However when I start `guix repl' and try to use modules from those extra
channels, it does not work:

    $ guix repl
    Loading Guix REPL meta-commands...
    Increasing build verbosity...
    Disabling grafting...
    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)> ,use (nongnu packages mozilla)
    While executing meta-command:
    no code for module (nongnu packages mozilla)

When I explore the load path, I can see this:

    scheme@(guix-user)> ,pp %load-path
    $2 = ("/gnu/store/a8lqn15kzjh99ncms26qm5hw699i94v5-guix-module-union/share/guile/site/3.0"
     "/gnu/store/1gd9nsy4cps8fnrd1avkc9l01l7ywiai-guile-3.0.9/share/guile/3.0"
     "/gnu/store/1gd9nsy4cps8fnrd1avkc9l01l7ywiai-guile-3.0.9/share/guile/3.0"
     "/gnu/store/1gd9nsy4cps8fnrd1avkc9l01l7ywiai-guile-3.0.9/share/guile/site/3.0"
     "/gnu/store/1gd9nsy4cps8fnrd1avkc9l01l7ywiai-guile-3.0.9/share/guile/site"
     "/gnu/store/1gd9nsy4cps8fnrd1avkc9l01l7ywiai-guile-3.0.9/share/guile"
     "/home/wolf/.guix-home/profile/share/guile/site/3.0"
     "/run/current-system/profile/share/guile/site/3.0")

What seems interesting here is that it contains ~/.guix-home path, but not
~/.config/guix/current.  When I check the ~/.config/guix/current the channels
are there:

    $ ls -1 ~/.config/guix/current/share/guile/site/3.0
    COPYING
    NEWS
    README
    README.org
    gnu
    gnu.scm
    guix
    guix.scm
    news.txt
    nongnu
    nonguix
    wolfsden

And when I manually add it to the load path, it starts to work:

    scheme@(guix-user)> (add-to-load-path "/home/wolf/.config/guix/current/share/guile/site/3.0")
    scheme@(guix-user)> ,use (nongnu packages mozilla)
    scheme@(guix-user)>

And I am not sure why that is the case.  Usage for `guix repl' says "In the Guix
execution environment ...", so I would expect the channels to be available by
default.

I am pretty sure the pull itself is fine, since I can reconfigure successfully,
it is just the `guix repl's behavior I do not get.

Thanks in advance for any pointers,
Tomas Volf

--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

             reply	other threads:[~2024-07-12  8:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-12  8:11 Tomas Volf [this message]
2024-07-12 14:15 ` Why are custom channels not available to guix repl? Richard Sent
2024-07-13 14:49   ` Tomas Volf
2024-07-13 15:55     ` Suhail Singh

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=ZpDlP6XHxV3Kky8n@ws \
    --to=~@wolfsden.cz \
    --cc=help-guix@gnu.org \
    /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.