unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Error pulling custom channel that includes another third-party channel
@ 2022-04-13 23:29 B. Wilson
  2022-04-15 15:24 ` Kaelyn
  0 siblings, 1 reply; 2+ messages in thread
From: B. Wilson @ 2022-04-13 23:29 UTC (permalink / raw)
  To: guix-devel

Hey Guix,

In my channels.scm, in addition to the primary guix channel I have my-channel
and other-channel. This has worked just fine, until I added a commit in
my-channel which use-modules something from other-channel.

Now guix pull fails when attempting to build my-channel:

    (exception misc-error (value #f) (value "no code for module ~S") (value ((other channel module))) (value #f))

What am I missing?

Just to be clear, locally building with `guix build -L path/to/my-channel foo`
succeeds just fine. Is there somewhere inside my-channel where I need to
explicitly declare the dependency on other-channel?

Any help appreciated. Cheers,

BW


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Error pulling custom channel that includes another third-party channel
  2022-04-13 23:29 Error pulling custom channel that includes another third-party channel B. Wilson
@ 2022-04-15 15:24 ` Kaelyn
  0 siblings, 0 replies; 2+ messages in thread
From: Kaelyn @ 2022-04-15 15:24 UTC (permalink / raw)
  To: B. Wilson; +Cc: guix-devel

------- Original Message -------
On Wednesday, April 13th, 2022 at 4:29 PM, B. Wilson <elaexuotee@wilsonb.com> wrote:


> Hey Guix,
>
> In my channels.scm, in addition to the primary guix channel I have my-channel
> and other-channel. This has worked just fine, until I added a commit in
> my-channel which use-modules something from other-channel.
>
> Now guix pull fails when attempting to build my-channel:
>
> (exception misc-error (value #f) (value "no code for module ~S") (value ((other channel module))) (value #f))
>
> What am I missing?
>
> Just to be clear, locally building with `guix build -L path/to/my-channel foo`
> succeeds just fine. Is there somewhere inside my-channel where I need to
> explicitly declare the dependency on other-channel?
>
> Any help appreciated. Cheers,
>
> BW

Hello! I have a local guix channel that depends on another channel. Basically in the top-level folder of your channel's git repo, you need a .guix-channel file declaring the dependency (in a fashion similar to channels.scm). For example, for my-channel:

(channel
 (version 0)
 (dependencies
  (channel
    (name other-channel)
    (url "http://other-channel")
    (branch "master"))))

HTH!

Cheers,
Kaelyn


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-15 15:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-13 23:29 Error pulling custom channel that includes another third-party channel B. Wilson
2022-04-15 15:24 ` Kaelyn

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).