unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: Marius Bakke <mbakke@fastmail.com>
Cc: 41069@debbugs.gnu.org
Subject: bug#41069: cyclically dependent channels crashes guix pull
Date: Mon, 4 May 2020 19:06:16 +0200	[thread overview]
Message-ID: <CAJ3okZ0-T10dRqH8bBmbOfHgys0wETSe=hozW3K_CG+vFd5mfA@mail.gmail.com> (raw)
In-Reply-To: <87wo5rznel.fsf@devup.no>

On Mon, 4 May 2020 at 18:23, Marius Bakke <mbakke@fastmail.com> wrote:
>
> Martin Becze <mjbecze@riseup.net> writes:
>
> > Cyclically dependent channels crashes guix pull. Cyclically dependent
> > channels probably shouldn't happen, but guix pull probably shouldn't go
> > into an endless loop and die either.
>
> Can you provide a channel configuration that reproduces this?

When one channel depends on another one which depends on the first.

This /tmp/channel1/ contains this .guix-channel

--8<---------------cut here---------------start------------->8---
(channel
 (version 0)
 (dependencies
  (channel
   (name channel2-from-channel1)
   (url "file:///tmp/channel2")
   (branch "master"))))
--8<---------------cut here---------------end--------------->8---


This /tmp/channel2/ contains this .guix-channel

--8<---------------cut here---------------start------------->8---
(channel
 (version 0)
 (dependencies
  (channel
   (name channel1-from-channel2)
   (url "file:///tmp/channel1")
   (branch "master"))))
--8<---------------cut here---------------end--------------->8---

And for example, the file 'my-channels.scm' contains:

--8<---------------cut here---------------start------------->8---
(list
 (channel
  (name 'channel1)
  (url "file:///tmp/channel1")
  (branch "master"))
 (channel
  (name 'channel2)
  (url "file:///tmp/channel2")
  (branch "master"))
 (channel
  (name 'guix)
  (url "https://git.savannah.gnu.org/git/guix.git")
  (commit "aea6ab2f4ca060e68f8539cd612b0ce088627557")))
--8<---------------cut here---------------end--------------->8---


Then guix pull -C /tmp/my-channels.scm will be "Updating ..." for ever. :-)



Hope that helps.

All the best,
simon




      reply	other threads:[~2020-05-04 17:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-04  2:38 bug#41069: cyclically dependent channels crashes guix pull Martin Becze
2020-05-04 16:16 ` Marius Bakke
2020-05-04 17:06   ` zimoun [this message]

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='CAJ3okZ0-T10dRqH8bBmbOfHgys0wETSe=hozW3K_CG+vFd5mfA@mail.gmail.com' \
    --to=zimon.toutoune@gmail.com \
    --cc=41069@debbugs.gnu.org \
    --cc=mbakke@fastmail.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 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).