From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SBZZDMVb11/8KgAA0tVLHw (envelope-from ) for ; Mon, 14 Dec 2020 12:34:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gOwwCMVb11+tBgAA1q6Kng (envelope-from ) for ; Mon, 14 Dec 2020 12:34:13 +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 aspmx1.migadu.com (Postfix) with ESMTPS id D7896940105 for ; Mon, 14 Dec 2020 12:34:12 +0000 (UTC) Received: from localhost ([::1]:43604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kon3L-0005Nf-Qx for larch@yhetil.org; Mon, 14 Dec 2020 07:34:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kon3C-0005Le-TB for guix-patches@gnu.org; Mon, 14 Dec 2020 07:34:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39940) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kon3C-00017I-Ln for guix-patches@gnu.org; Mon, 14 Dec 2020 07:34:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kon3C-0004Kj-H3 for guix-patches@gnu.org; Mon, 14 Dec 2020 07:34:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45104] pull: Add a "with-substitutes" option. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 14 Dec 2020 12:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45104 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Christopher Baines Received: via spool by 45104-submit@debbugs.gnu.org id=B45104.160794923116640 (code B ref 45104); Mon, 14 Dec 2020 12:34:02 +0000 Received: (at 45104) by debbugs.gnu.org; 14 Dec 2020 12:33:51 +0000 Received: from localhost ([127.0.0.1]:51486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kon30-0004KK-Lg for submit@debbugs.gnu.org; Mon, 14 Dec 2020 07:33:50 -0500 Received: from mail-wr1-f43.google.com ([209.85.221.43]:39351) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kon2z-0004K6-2T for 45104@debbugs.gnu.org; Mon, 14 Dec 2020 07:33:49 -0500 Received: by mail-wr1-f43.google.com with SMTP id c5so12552598wrp.6 for <45104@debbugs.gnu.org>; Mon, 14 Dec 2020 04:33:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=Y2pU/JUIPK08J+4ouBO/GRjWSxj+do7SWKMJY/EYPps=; b=c2wEFYxowwlvPiWohRJZgIEszCxuNlLpr5XA7N0QIvNqw4dz9cwFFu2IP6co3eKZ2d gT1Y9hEc4KM3IvjOCMbWi3//JDrCGwKPKGdjrQYPz12R0uYmFsejy8HFW7ETO3vqV9VJ nzhKd0JDBk0dUEj6mrJAzEmfvcFJAxvSRNtJiTVO4PNJK47Y/WUd3hWpOh1SP/C+Nco6 GkIxmrCp+CvasdixdYk7EO8wmhPr7qPAaMlZyH+Pay3ZUCYzXFmm3YKHP6oM332EWruI pUfvIzhDOeDF3mdK7Izhxpu0wQoRc29wwXPjx4zRsfqwjYjFHDzjziyMvgFrT/SXCptJ /oPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=Y2pU/JUIPK08J+4ouBO/GRjWSxj+do7SWKMJY/EYPps=; b=bVkH5haA454dzfbBF4VIUJVGsjGpB8kHZFvjvuUlWuOHmVh9yE3K29RI212cwBLnl8 5eYFYp/OD9mwHg9Pjao3RHQiJGw4LUzS0OzRmXiMrT4+29Fg+BfWtm2JWh7m+Qu63uzr rdn/dJ/G2nUMGAoRHwRpywKyzhGdLJFNSH+PbKrBYTJ6SNKR/Kcb9tCHN4Jp9AeIxlCP /o2Jb3V5Jx5txgOndnFxuisrVrXFFxRRnIZf/sYs4l1qy3j0tYEiJL1TiKd3Ij134cyY BjZhCbpndAytWXkWhKAVJmSQwnI+aBqkL9fY7ZxZDUb0WiB48Pf/mILRDHNk6m120zOv 4l3A== X-Gm-Message-State: AOAM532pFB+xHcRyYRdZpg64BF7COh6driOI+c2AnUPUHvyhcjCSFB8K W1pXDir+6QoZhqosz+rMDMvDvjMva18= X-Google-Smtp-Source: ABdhPJyoSoQZhZX76Ti/XzN4Mns4M3olGdoooo6eiOT6JxTQl3RuSS8uV4zzi+b9zR6McfNSz4daGg== X-Received: by 2002:a5d:6789:: with SMTP id v9mr17501104wru.86.1607949222725; Mon, 14 Dec 2020 04:33:42 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id v125sm29867829wme.42.2020.12.14.04.33.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Dec 2020 04:33:41 -0800 (PST) From: zimoun In-Reply-To: <877dpktzot.fsf@gnu.org> References: <87eek1vd4g.fsf@gnu.org> <87a6uohztw.fsf@cbaines.net> <877dpktzot.fsf@gnu.org> Date: Mon, 14 Dec 2020 12:39:21 +0100 Message-ID: <86o8iwobva.fsf@gmail.com> 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: , Cc: Mathieu Othacehe , 45104@debbugs.gnu.org Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.21 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=c2wEFYxo; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.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: D7896940105 X-Spam-Score: -1.21 X-Migadu-Scanner: scn0.migadu.com X-TUID: hDyxyAaNBX9H Hi, On Mon, 14 Dec 2020 at 12:05, Ludovic Court=C3=A8s wrote: > (channel-with-substitutes-available > (channel (name 'guix) =E2=80=A6) > "https://ci.guix.gnu.org") > > and optionally with a manifest or a list of packages that should be > available as substitutes: > > (channel-with-substitutes-available > (channel (name 'guix) =E2=80=A6) > "https://ci.guix.gnu.org" > (specifications->manifest '("emacs" "guile"))) Sounds good to me. > BTW, doing all this is safer today because =E2=80=98guix pull=E2=80=99 wi= ll detect and > prevent downgrades. Though an attacker who manages to break into > ci.guix.gnu.org could cause all the users of > =E2=80=98channel-with-substitutes-available=E2=80=99 to no longer receive= updates or to > receive them more slowly than they appear in Git simply by making CI > even slower than it currently is. As mentioned earlier, if =E2=80=9Cguix pull=E2=80=9D completes only when su= bstitutes is available, then depending on the CI, the user can never complete the =E2=80=9Cpull=E2=80=9D and so stay =E2=80=9Cblocked=E2=80=9C. For example, reusing your example, Emacs is not currently available and it has been since say 1 month. Therefore until Emacs becomes available for the fast moving HEAD, the user would be =E2=80=9Cblocked=E2=80=9D. Or = I miss something. All the best, simon