From: Marius Bakke <marius@gnu.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 42030@debbugs.gnu.org
Subject: [bug#42030] [PATCH] channels: Error out when the 'guix' channel lacks an introduction.
Date: Mon, 29 Jun 2020 13:47:48 +0200 [thread overview]
Message-ID: <87o8p2ayaj.fsf@gnu.org> (raw)
In-Reply-To: <87r1u3trx8.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1695 bytes --]
Hello! Sorry for the late reply.
Ludovic Courtès <ludo@gnu.org> writes:
>> I think we should export %guix-channel-introduction, or alternatively
>> add a %default-guix-channel that can be inherited, for easy access in
>> custom channels.scm files. WDYT?
>
> The idea was to expose only ‘%default-channels’, which leaves room for
> the possibility of having multiple channels by default. I’d rather
> avoid exposing the individual bits as that’s a bit of an additional
> committment.
>
> But note that the introduction of the “official” guix channel is
> automatically added anyway (commit
> c3f6f564e909ebefe752d24b325871a4e3a02d40).
It is only added for people using the default channel URL, and not for
local mirrors that may well be authenticated. E.g. (url "/some/dir") or
(url "https://github.com/guix-mirror/guix").
Would it make sense to remove the %default-channel-url check from
ensure-default-introductions? I think we can safely assume that a
channel named 'guix is _the_ Guix channel regardless of where it came
from, and if users need to override the introduction they can just do
that.
Currently I do this to access the channel introduction, which seems
needlessly complicated:
--8<---------------cut here---------------start------------->8---
(use-modules (srfi srfi-1))
(let ((guix-channel (find (lambda (channel)
(eq? 'guix (channel-name channel)))
%default-channels)))
(list [other channels omitted]
(channel
(inherit guix-channel)
(url "/home/marius/src/guix"))))
--8<---------------cut here---------------end--------------->8---
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2020-06-29 11:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-24 12:57 [bug#42030] [PATCH] channels: Error out when the 'guix' channel lacks an introduction Ludovic Courtès
2020-06-24 21:13 ` Marius Bakke
2020-06-25 9:29 ` Ludovic Courtès
2020-06-29 11:47 ` Marius Bakke [this message]
2020-06-29 15:14 ` Ludovic Courtès
2020-07-25 15:05 ` Marius Bakke
2020-06-28 21:31 ` bug#42030: " Ludovic Courtès
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=87o8p2ayaj.fsf@gnu.org \
--to=marius@gnu.org \
--cc=42030@debbugs.gnu.org \
--cc=ludo@gnu.org \
/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).