From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Lepiller Subject: bug#37399: Guix subcommands from channels not found Date: Fri, 13 Sep 2019 13:57:08 +0200 Message-ID: <1E9B8AE4-D8C0-46F7-B1C1-1C0993FF59DA@lepiller.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50133) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i8kDE-0006Yh-3P for bug-guix@gnu.org; Fri, 13 Sep 2019 07:58:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i8kDD-0001cp-2t for bug-guix@gnu.org; Fri, 13 Sep 2019 07:58:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35647) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i8kDC-0001bl-OX for bug-guix@gnu.org; Fri, 13 Sep 2019 07:58:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i8kDC-00084i-LR for bug-guix@gnu.org; Fri, 13 Sep 2019 07:58:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:50051) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i8kCa-0006Ul-RZ for bug-guix@gnu.org; Fri, 13 Sep 2019 07:57:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i8kCZ-0001DO-IN for bug-guix@gnu.org; Fri, 13 Sep 2019 07:57:24 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:55692) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i8kCY-0001Ae-VL for bug-guix@gnu.org; Fri, 13 Sep 2019 07:57:23 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id ac663fc0 for ; Fri, 13 Sep 2019 11:57:14 +0000 (UTC) Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 442b7267 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Fri, 13 Sep 2019 11:57:14 +0000 (UTC) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 37399@debbugs.gnu.org Hi guix=2E While working on my guix-home-manager experiment, I tried to cre= ate a "guix home" subcommand in my channel, by creating the (guix scripts h= ome) module=2E However, after pulling the right branch, with this in my channels=2Escm: (channel (name 'home) (url "https://framagit=2Eorg/tyreunom/guix-home-manager=2Egit") (branch "subcommand")) I get "guix: home: command not found"=2E Guix describes agrees that I have installed the right branch, and from gui= x repl, I can run: ,m (guix ui) (run-guix-command 'home) And it prints the test message=2E From=20stracing 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 i= nside "current"=2E So either guix-module-union should be extended to contai= n channel code, or the load path modified to load a bigger union or multipl= e directories=2E For now, setting GUILE_LOAD_PATH to load from "current" works and I can ru= n guix home=2E I think it should work by default though=2E