all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Moisés Simón" <moisessimon@posteo.net>
To: help-guix@gnu.org, Luis Felipe <sirgazil@zoho.com>
Subject: Re: Custom channel is making guix pull fail
Date: Sat, 14 Sep 2024 05:41:55 +0000	[thread overview]
Message-ID: <9CFFD9FA-1C4D-429A-A284-410BC7CBE9F2@posteo.net> (raw)
In-Reply-To: <4b16c607-9dc1-3960-24ab-ac550eda56f5@zoho.com>

Hola Luis,

Regarding the issue I can't help but to use a local channel it has to start with file:// so:

(url (string-append "file://" (getenv "HOME") "/guix-channel-x"))

should do it


El 13 de septiembre de 2024 17:14:16 UTC, Luis Felipe <sirgazil@zoho.com> escribió:
>Hi,
>
>Could you help me find out what I'm doing wrong here, please? :)
>
>I have a custom channel (https://codeberg.org/luis-felipe/guix-channel-x) that had been working fine for a very long time, but now running "guix pull" fails with the following error:
>
>#+begin_quote
>building /gnu/store/3aghnb3nbxmgl5f2fsjchz27iwsdz0rl-luflac-x.drv...
>-builder for `/gnu/store/3aghnb3nbxmgl5f2fsjchz27iwsdz0rl-luflac-x.drv' failed to produce output path
>`/gnu/store/zpmgrl9sz83ininzainjs9kjk25wymsw-luflac-x'
>build of /gnu/store/3aghnb3nbxmgl5f2fsjchz27iwsdz0rl-luflac-x.drv failed
>View build log at '/var/log/guix/drvs/3a/ghnb3nbxmgl5f2fsjchz27iwsdz0rl-luflac-x.drv.gz'.
>cannot build derivation `/gnu/store/99w71gp2rxzb7g1ij62qag769bryxwzi-profile.drv': 1 dependencies
>couldn't be built
>guix pull: error: build of `/gnu/store/99w71gp2rxzb7g1ij62qag769bryxwzi-profile.drv' failed
>#+end_quote
>
>And the referenced build log reads as follows:
>
>#+begin_quote
>(repl-version 0 1 1)
>guix repl: warning: '%gnu-build-system-modules' is deprecated,
>use '%default-gnu-imported-modules' instead
>WARNING: (guix build guile-easy-build-system):
>imported module (guix build utils) overrides core binding `delete'
>(exception match-error (value "match") (value "no matching pattern") (value ()))
>#+end_quote
>
>My "channels.scm" configuration looks like this:
>
>#+begin_src scheme
>;;; Guix channels definitions.
>;;; Location: ~/.config/guix/channels.scm
>
>(use-modules (guix ci))
>
>(list
> (channel
>  (name 'luflac-x)
>  (url "https://codeberg.org/luis-felipe/guix-channel-x.git")
>  (branch "trunk")
>  (introduction
>   (make-channel-introduction
>    "53e5e8864d04efb8d7315719575718665c68c792"
>    (openpgp-fingerprint
>     "0910 827A 2E06 1E61 6C06  AC3D 0AB0 D067 012F 08C3"))))
>
> (channel-with-substitutes-available
>  %default-guix-channel
>"https://ci.guix.gnu.org"))
>#+end_src
>
>Wanting to debug the problem using a local copy of my channel, I changed my channel's record in "channels.scm" as follows:
>
>#+begin_src scheme
>(use-modules (guix ci))
>
>(list
> #;
> (channel
>  (name 'luflac-x)
>  (url "https://codeberg.org/luis-felipe/guix-channel-x.git")
>  (branch "trunk")
>  (introduction
>   (make-channel-introduction
>    "53e5e8864d04efb8d7315719575718665c68c792"
>    (openpgp-fingerprint
>     "0910 827A 2E06 1E61 6C06  AC3D 0AB0 D067 012F 08C3"))))
> ;; NOTE: Use the following definition to debug the channel locally.
> (channel
>  (name 'luflac-x)
>  (url (string-append (getenv "HOME") "/guix-channel-x"))
>  (branch "debug")
>  (introduction
>   (make-channel-introduction
>    "53e5e8864d04efb8d7315719575718665c68c792"
>    (openpgp-fingerprint
>     "0910 827A 2E06 1E61 6C06  AC3D 0AB0 D067 012F 08C3"))))
>
> (channel-with-substitutes-available
>  %default-guix-channel
>  "https://ci.guix.gnu.org"))
>#+end_src
>
>But then "guix pull" fails with the following error:
>
>#+begin_quote
>Updating channel 'luflac-x' from Git repository at '/home/yo/guix-channel-x'...
>guix pull: error: Git error: cannot locate remote-tracking branch 'origin/debug'
>#+end_quote
>
>I don't understand why git is looking for a remote-tracking branch in "origin". The "debug" branch is available locally only. And even if I push it to origin, I get the same error when running "guix pull" again.
>
>Also, if I change the branch to "trunk", I get the following error:
>
>#+begin_quote
>Updating channel 'luflac-x' from Git repository at '/home/yo/guix-channel-x'...
>guix pull: error: Git error: cannot locate remote-tracking branch 'origin/keyring'
>#+end_quote
>
>Even though the "keyring" branch exists both locally and remotely (in "origin")...
>
>Finally, and for what it's worth, I can import all modules in the channel from a Guile REPL without errors.
>
>Thanks in advance,
>
>


  reply	other threads:[~2024-09-14 12:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-13 17:14 Custom channel is making guix pull fail Luis Felipe
2024-09-14  5:41 ` Moisés Simón [this message]
2024-09-14 15:27   ` Luis Felipe
2024-09-14 11:41 ` Marek Paśnikowski
2024-09-17  1:45 ` Felix Lechner via
2024-09-17 15:52   ` Luis Felipe
2024-09-20 18:26 ` Luis Felipe

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

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

  git send-email \
    --in-reply-to=9CFFD9FA-1C4D-429A-A284-410BC7CBE9F2@posteo.net \
    --to=moisessimon@posteo.net \
    --cc=help-guix@gnu.org \
    --cc=sirgazil@zoho.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.