unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: "Maxime Devos" <maximedevos@telenet.be>,
	"André A. Gomes" <andremegafone@gmail.com>,
	57559@debbugs.gnu.org
Subject: bug#57559: guix pull fails on http status code 503
Date: Thu, 08 Sep 2022 13:11:47 +0200	[thread overview]
Message-ID: <86v8pyw26k.fsf@gmail.com> (raw)
In-Reply-To: <da06e8df-95b2-f56e-fa1d-330f977de38e@telenet.be>

Hi Maxime,

On Thu, 08 Sep 2022 at 11:23, Maxime Devos <maximedevos@telenet.be> wrote:

> Looking at 'latest-channel-instances', the code for deciding what the
> latest version is, is the same for the guix channel and any other
> channel.  As such, the 'Guix is unavailable' is, currently, not special.

Well, ’latest-channel-instances’ relies on ’latest-channel-instance’
which tests ’guix-channel?’,

--8<---------------cut here---------------start------------->8---
(define (guix-channel? channel)
  "Return true if CHANNEL is the 'guix' channel."
  (eq? 'guix (channel-name channel)))
--8<---------------cut here---------------end--------------->8---

then, for instance, the occurrences are:

--8<---------------cut here---------------start------------->8---
12 candidates:
./guix/channels.scm:79:            guix-channel?
./guix/channels.scm:192:(define (guix-channel? channel)
./guix/channels.scm:199:  (if (and (guix-channel? chan)
./guix/channels.scm:424:            (when (guix-channel? channel)
./guix/channels.scm:437:    (when (guix-channel? channel)
./guix/channels.scm:778:            (guix-channel? (channel-instance-channel instance)))
./guix/channels.scm:903:        (item (if (guix-channel? channel)
./guix/scripts/pull.scm:775:        (match (find guix-channel? channels)
./guix/scripts/pull.scm:788:                   (remove guix-channel? channels))))
./gnu/packages/package-management.scm:125:                                guix-channel?
./gnu/packages/package-management.scm:618:   (delay (match (or (find guix-channel? (current-channels))
./gnu/ci.scm:478:    (find guix-channel? channels))
--8<---------------cut here---------------end--------------->8---

And my point is that the Guix channel is special when pulling.
Therefore, we could split the cases when the Guix channel is unreachable
and when other extra-channels are unreachable; because the impact are
different, IMHO.

As I pointed earlier in the thread, the main issue is when these extra
channels are unreachable; as André have initially reported.


Cheers,
simon




  reply	other threads:[~2022-09-08 11:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-03 11:21 bug#57559: guix pull fails on http status code 503 André A. Gomes
2022-09-03 17:27 ` Maxime Devos
2022-09-04 20:27   ` André A. Gomes
2022-09-05  8:21   ` zimoun
2022-09-05 20:20     ` Maxime Devos
2022-09-06 13:09       ` zimoun
2022-09-08  0:55         ` Maxime Devos
2022-09-08  7:25           ` zimoun
2022-09-08  9:23             ` Maxime Devos
2022-09-08 11:11               ` zimoun [this message]
2022-09-08 11:29                 ` Maxime Devos

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=86v8pyw26k.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=57559@debbugs.gnu.org \
    --cc=andremegafone@gmail.com \
    --cc=maximedevos@telenet.be \
    /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).