From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:53499) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jA9G3-0000Aq-SM for guix-patches@gnu.org; Fri, 06 Mar 2020 04:27:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jA9G2-0006rK-Q3 for guix-patches@gnu.org; Fri, 06 Mar 2020 04:27:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38095) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jA9G2-0006qj-Mc for guix-patches@gnu.org; Fri, 06 Mar 2020 04:27:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jA9G2-0005aZ-IX for guix-patches@gnu.org; Fri, 06 Mar 2020 04:27:02 -0500 Subject: [bug#39547] Addition of %content-addressed-mirrors to sources.json (SWH)? Resent-Message-ID: MIME-Version: 1.0 References: <87k13yai68.fsf@gnu.org> In-Reply-To: <87k13yai68.fsf@gnu.org> From: zimoun Date: Fri, 6 Mar 2020 10:26:36 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 39547@debbugs.gnu.org Hi Ludo, On Thu, 5 Mar 2020 at 17:19, Ludovic Court=C3=A8s wrote: > zimoun skribis: > > > Some upstream sources could disappear between the moment when the > > package enters in Guix and the moment when SWH ingests it. (As an edge > > case, let consider the recent harfbuzz one.) > > > > Now the format 'sources.json' should accept an array. Does it make > > sense to put in this array the content addressed mirrors > > (ci.guix.gnu.org and tarball.nixos.org)? > > Yes, I think =E2=80=98sources.json=E2=80=99 should contain, for each item= , a list of > URLs rather than a single URL, and mirror:// URLs should be expanded. Yes, now it is accepted [1] and it becomes the format of the 'sources.json' file. [1] https://forge.softwareheritage.org/D2025#65063 The patch set v2 supports the first discussion of the format (single url); which is not relevant anymore. The patch set attached in v3 [2] supports the array of URLs. [2] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D39547#35 > However, =E2=80=98sources.json=E2=80=99 is currently specified to contain= a single URL, > so we=E2=80=99re stuck with a single URL for now. > > Is that what you meant? What I mean is: append %content-addressed-mirrors for each package in the list of URLs. Cheers, simon