--- Begin Message ---
Subject: |
Channel authentication should start at the current commit(s) |
Date: |
Fri, 15 Jan 2021 18:44:49 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Hi!
Currently, the first ‘guix pull’ (when ~/.cache/guix is empty)
authenticates starting from the introductory commit. For the ‘guix’
channel, that’s 11K commits today, which takes about a minute to process
on modern hardware.
Authentication should instead consider the current commits, as returned
by ‘guix describe’, authenticated, and start from there.
For example, if you install Guix 1.3, authentication should start at the
‘v1.3’ commit.
Ludo’.
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#45895: Channel authentication should start at the current commit(s) |
Date: |
Thu, 04 Feb 2021 13:47:04 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Ludovic Courtès <ludo@gnu.org> skribis:
>>From 9bbce577036f2018d605d111042b0a7fc1be266b Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org>
> Date: Tue, 2 Feb 2021 09:37:33 +0100
> Subject: [PATCH] channels: Consider the current channel commit as authentic.
>
> Fixes <https://bugs.gnu.org/45895>.
>
> When the ~/.cache/guix/authentication is empty, this change allows
> authentication to start at the current commit, as shown by 'guix
> describe', instead of starting from the introductory commit, which would
> take more and more time (there's currently 18K commits per year).
>
> * guix/git-authenticate.scm (authenticate-repository): Add
> #:authentic-commits.
> [authenticated-commits]: Append it.
> * guix/channels.scm (authenticate-channel)[authentic-commits]: New
> variable. Pass it to 'authenticate-repository'.
Pushed as 29009fdb2d3636eafa77b406da2430b08a22d47e.
Ludo’.
--- End Message ---