Guix subcommands from channels not found

  • Open
  • quality assurance status badge
Details
2 participants
  • Gábor Boskovits
  • Julien Lepiller
Owner
unassigned
Submitted by
Julien Lepiller
Severity
normal
Merged with

Debbugs page

Julien Lepiller wrote 5 years ago
(address . bug-guix@gnu.org)
1E9B8AE4-D8C0-46F7-B1C1-1C0993FF59DA@lepiller.eu
Hi guix. While working on my guix-home-manager experiment, I tried to create a "guix home" subcommand in my channel, by creating the (guix scripts home) module.

However, after pulling the right branch, with this in my channels.scm:

(channel
(name 'home)
(branch "subcommand"))

I get "guix: home: command not found".

Guix describes agrees that I have installed the right branch, and from guix repl, I can run:

,m (guix ui)
(run-guix-command 'home)

And it prints the test message.

From stracing the guix home invocation, I found out that guix was looking for the module only inside guix-module-union and my guix profile, but not inside "current". So either guix-module-union should be extended to contain channel code, or the load path modified to load a bigger union or multiple directories.

For now, setting GUILE_LOAD_PATH to load from "current" works and I can run guix home. I think it should work by default though.
Gábor Boskovits wrote 5 years ago
Merge issues on channels not finding modules
(address . control@debbugs.gnu.org)
CAE4v=phCHaZRp5vPjid8QJ3LCcYn+MJjke4Q7frg=5Adv5ra+Q@mail.gmail.com
merge 37399 38795
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 37399@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 37399
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help