From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id kE5ML4XfbWWFfwEAG6o9tA:P1 (envelope-from ) for ; Mon, 04 Dec 2023 15:17:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kE5ML4XfbWWFfwEAG6o9tA (envelope-from ) for ; Mon, 04 Dec 2023 15:17:41 +0100 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 7E8D847B2B for ; Mon, 4 Dec 2023 15:17:41 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gnu.org header.s=fencepost-gnu-org header.b=jdwSd5fv; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701699461; 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:dkim-signature; bh=yM5z61L4M5DO0hxjbuAwkHrO/Zhd04vjRQYB0Se3ujs=; b=dMdn1rOni1bEjYK8ftYmjAM9zXXD+u9iHjdWDvt9avS8X9y2slaLC2HJfbGXxuLwC8NHAg DccyIuZdhCDUFhm/ELJtJ9Yh7UjNebCWnmD0i67//LnGF/usCuEl8TwV180XsG01k5gbCP RZ+FQqrxnej1GUmJbOvtZOuafLoaldVLjGz2BHOwsYONU63HSEadgZFljmWEbJ+XhgrYm6 e+2mbj+zA25IcTENNdwfZFPBc8NkGpc/DvKpkk28UqkCEXVcogFNuGk4nqEHKCt4DyadrK sbrTgaR6iGJ0vilCbJ6Ggd87i0WCKghdPLEv6HlXQBqUz9cHb0+pXiMPnCDUBQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701699461; a=rsa-sha256; cv=none; b=AdTm9Mgn8lmybok2+jCqbGOniDeiWZ+xNiKmbUJGY6SdfPnoYJuYvJ04eHAYy0AERDxYCE xX4F6rpBtHD+AxOzLqpbYiQywTGcQ3i4aegfkKjz2xCZMynBVyVyzHnrhHnoHXg3/jGvIN Pho5b1NdZLKWufC+FvMuEnLbJXSOIhnNmDcC+h1bMe0jJdeXHt5WbwpTliNi4I8msBMz4p g4+/LP2RVG+Irn+TI4uqgvB2Q93aDxboI1OG210a1lSG7QFyK44PN9OKSKND+6oO2w/tE+ 6R1uTGbPktz6TAoREv6e6az634uWqw5zKKFc/nYJJ3/29Lh7TgKhcQNgRhyHnQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gnu.org header.s=fencepost-gnu-org header.b=jdwSd5fv; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rA9kr-0006jK-9b; Mon, 04 Dec 2023 09:17:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rA9kl-0006eD-6q for guix-patches@gnu.org; Mon, 04 Dec 2023 09:16:56 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rA9kk-0007Wx-6S; Mon, 04 Dec 2023 09:16:54 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rA9kt-0007gT-6b; Mon, 04 Dec 2023 09:17:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67072] [PATCH v2 2/4] challenge: Use the same substitute URLs as guix-daemon. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, rekado@elephly.net, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Mon, 04 Dec 2023 14:17:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67072 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67072@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by 67072-submit@debbugs.gnu.org id=B67072.170169939729453 (code B ref 67072); Mon, 04 Dec 2023 14:17:03 +0000 Received: (at 67072) by debbugs.gnu.org; 4 Dec 2023 14:16:37 +0000 Received: from localhost ([127.0.0.1]:33760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rA9kS-0007ez-U8 for submit@debbugs.gnu.org; Mon, 04 Dec 2023 09:16:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rA9kP-0007eP-AB for 67072@debbugs.gnu.org; Mon, 04 Dec 2023 09:16:33 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rA9k9-0007Ri-Dm; Mon, 04 Dec 2023 09:16:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=tr4GCLXY9vCKCXMkzWp2PiyLagQtaTOJotynNo9MsX0=; b=jdwSd5fvQt0peuaT99ZA oTMPNa7aThmnVcZkul0iGpfVO5NoH09xEpqCi0yMkxATd1j70oCysDTId4/UKcuOGkeJZ/nXRkBqP XAQ+hT9tAYPtyvDiExtN/z33/mUx47zX1MQlH2iPQwOsD5oH+Cng5rpmjpvnjp8LCyToO/rtL87Ej OUUm/9on0nw+aD1d2r+OfHkFLWV6y7si/at229+oEfs82yTGp3stfSBJzLAvJKJZqzrSerqBRIrdH QTnGWThQhPZof7xJGgGmN78m2RJUl0pgNBtnEsZSMbZ9IS8HnQEz/2EHhoqtlxgDHYfEbgz2kYJAo Vdd7JUJilPZsvg==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Mon, 4 Dec 2023 15:15:43 +0100 Message-ID: <151b3401ea953f7d4af0c9c35ba6377468fe92b9.1701699075.git.ludo@gnu.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <875y1gj47u.fsf@gnu.org> References: <875y1gj47u.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -4.34 X-Spam-Score: -4.34 X-Migadu-Queue-Id: 7E8D847B2B X-TUID: ppyZtQ/rNW6b * guix/scripts/challenge.scm (%default-options): Remove ‘substitute-urls’. (guix-challenge): Call ‘substitute-urls’ when OPTS doesn’t have it. Warn when ‘substitute-urls’ returns #f. Change-Id: I49be0e89404c1889970a3430967fbb3498d35d99 --- guix/scripts/challenge.scm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/guix/scripts/challenge.scm b/guix/scripts/challenge.scm index 01e2f9a2b2..d38171b868 100644 --- a/guix/scripts/challenge.scm +++ b/guix/scripts/challenge.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2015-2017, 2019-2022 Ludovic Courtès +;;; Copyright © 2015-2017, 2019-2023 Ludovic Courtès ;;; ;;; This file is part of GNU Guix. ;;; @@ -504,7 +504,6 @@ (define %options (define %default-options `((system . ,(%current-system)) - (substitute-urls . ,%default-substitute-urls) (difference-report . ,report-differing-files))) @@ -539,7 +538,13 @@ (define-command (guix-challenge . args) (G_ "no arguments specified, nothing to do~%")) (exit 0)) (x - files)))) + files))) + (urls (or urls + (substitute-urls store) + (begin + (warning (G_ "could not determine current \ +substitute URLs; using defaults~%")) + %default-substitute-urls)))) (set-build-options store #:use-substitutes? #f) -- 2.41.0