unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Julien Lepiller <julien@lepiller.eu>
To: 37399@debbugs.gnu.org
Subject: bug#37399: Guix subcommands from channels not found
Date: Fri, 13 Sep 2019 13:57:08 +0200	[thread overview]
Message-ID: <1E9B8AE4-D8C0-46F7-B1C1-1C0993FF59DA@lepiller.eu> (raw)

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.

                 reply	other threads:[~2019-09-13 11:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1E9B8AE4-D8C0-46F7-B1C1-1C0993FF59DA@lepiller.eu \
    --to=julien@lepiller.eu \
    --cc=37399@debbugs.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 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).