From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yAdjCTOiPmAdTgAA0tVLHw (envelope-from ) for ; Tue, 02 Mar 2021 20:38:11 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SLAWBTOiPmC0cQAAbx9fmQ (envelope-from ) for ; Tue, 02 Mar 2021 20:38:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx2.migadu.com (Postfix) with ESMTPS id 7E6CD27275 for ; Tue, 2 Mar 2021 21:38:10 +0100 (CET) Received: from localhost ([::1]:54992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHBmT-0007ZO-GJ for larch@yhetil.org; Tue, 02 Mar 2021 15:38:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43424) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHBmL-0007Xc-Uk for guix-patches@gnu.org; Tue, 02 Mar 2021 15:38:01 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42791) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHBmL-0005yM-NN for guix-patches@gnu.org; Tue, 02 Mar 2021 15:38:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lHBmL-0004eH-L0 for guix-patches@gnu.org; Tue, 02 Mar 2021 15:38:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46800] [PATCH] Allow defining multiple substituters Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 02 Mar 2021 20:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46800 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos Cc: 46800@debbugs.gnu.org Received: via spool by 46800-submit@debbugs.gnu.org id=B46800.161471746717847 (code B ref 46800); Tue, 02 Mar 2021 20:38:01 +0000 Received: (at 46800) by debbugs.gnu.org; 2 Mar 2021 20:37:47 +0000 Received: from localhost ([127.0.0.1]:54337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHBm7-0004dn-4R for submit@debbugs.gnu.org; Tue, 02 Mar 2021 15:37:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHBm5-0004da-03 for 46800@debbugs.gnu.org; Tue, 02 Mar 2021 15:37:46 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48047) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHBly-0005uH-LJ; Tue, 02 Mar 2021 15:37:38 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=59970 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lHBly-0000ZD-8E; Tue, 02 Mar 2021 15:37:38 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Tue, 02 Mar 2021 21:37:36 +0100 In-Reply-To: (Maxime Devos's message of "Fri, 26 Feb 2021 18:41:51 +0100") Message-ID: <87o8g1thpr.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1614717490; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=WsFLJVIpRrGqYZwbK7tdm6SWGatItUtwCESJssFHdSs=; b=DYO/8g80kdxE1nDmVzF3Fruc3/CA8kDHdixJQ3e4HtvMAGqtp2oKPrMJJISmGHyBH6a/Tr IBDdD67NYc2/tAPks1wZ9Rw6Bn4/h8KtRRViBUBLKeiY6E0qy4j8ReoGagQtB/289YnLvV k36CSV3gtOOVllUHlEsDUXmLc9sOQfvo4fJlh9ZQoQz/3ttqGk38YDuf9IYjyDxYsQZbVN ULhusBlMHh+5eanrwnYkSA5XcKwhFVYy2hSNMQnzDr8GQr4Kb88L3Nb7raW75jajOhMACa FZHVNRgxzdP417MmQIoskENu02nhXS7B2h6xkZVoP5DazxnaYkzS8II/fEC/Jg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614717490; a=rsa-sha256; cv=none; b=Nmo5uOrlHtBieyBzyVB42DoEXUiUg/fEwxx1h5CijBuco+W4NDlxsUELK7HvaCQSLq/CEH THKkDxX0qt7j3g+RZoLTnK2K4dthvwrt/XpjLpdQQ0LKjWW6GJ/irJYszD+vhZrFz7SpHZ gML41TmrQAIcYQVcwVeWVQhzcC5O2w6XNOxyTCfaIoGBxnsscFViwqunEOF8VWoMKXbklF VA873lhNuaWPbccn9Xik2KHDXzqr7AN6Sn7KBHV/qmZA1rIR3dyDd8tNY3A+4p5JgCnmAY zYFz1D3qZLQz2H0lNWPoWgIdq4ej9nCEq0U/rjPixh++e9TRak9QvYvsCPjjrQ== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx2.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.86 Authentication-Results: aspmx2.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx2.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 7E6CD27275 X-Spam-Score: -2.86 X-Migadu-Scanner: scn0.migadu.com X-TUID: K8Qw915E9ZNZ Hi Maxime, Maxime Devos skribis: > This patch series is my suggestion for allowing > multiple "substitution methods" or "substituters" > as I call them. Currently, only a method for HTTP/S > is defined, though I hope it will be a good basis > for a common framework for substitutes over GNUnet > and IPFS. Thanks for working on this! As discussed on IRC, the daemon used to have support for multiple substituters, but as a built-in C++ interface, which I removed in f6919ebdc6b0ce0286814cc6ab0564b1a4c67f5f. The Scheme interface you propose is of course nicer :-), but I=E2=80=99m st= ill not sure it=E2=80=99s necessary. For example, in the IPFS prototype at , IPFS support goes hand in hand with HTTP support: narinfos are retrieved over HTTP and nars can be retrieved over IPFS, or HTTP. Likewise with =E2=80=9Cdigests=E2=80=9D: . Another issue is that it may be that, instead of letting users choose one method and stick to it, we=E2=80=99d rather let them choose a policy th= at can automatically pick the =E2=80=9Cbest=E2=80=9D method, dynamically adjus= ting choices. All in all, I would prefer to wait until there=E2=80=99s a clear need for t= his abstraction. WDYT? Thanks, Ludo=E2=80=99.