* bug#37399: Guix subcommands from channels not found
@ 2019-09-13 11:57 Julien Lepiller
0 siblings, 0 replies; only message in thread
From: Julien Lepiller @ 2019-09-13 11:57 UTC (permalink / raw)
To: 37399
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)
(url "https://framagit.org/tyreunom/guix-home-manager.git")
(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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-09-13 11:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-13 11:57 bug#37399: Guix subcommands from channels not found Julien Lepiller
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).