From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id iOeNLzUiXme7ewEAqHPOHw:P1 (envelope-from ) for ; Sun, 15 Dec 2024 00:26:29 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id iOeNLzUiXme7ewEAqHPOHw (envelope-from ) for ; Sun, 15 Dec 2024 01:26:29 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="JOXX+7/R"; dkim=fail ("headers rsa verify failed") header.d=freakingpenguin.com header.s=x header.b=FrC1Avtg; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734222389; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=HbTSY4accNNvwaj5F1OJkGCfGOBPJhoEatlK87bkgD0=; b=AJM4TVNwaugZLHFNnFQ+YOSbjcXqweOgUf9efXyIPqkkQV6J2/gxbEmXU/9aJFIdroz/OJ gju77WB32sCH277WlrdKYpczFh6KGkMS6aTxNoS4NgnP1j/r+4NKnx8YEwBqY9bUnI4lIW ILrIj99f7NmoXAUegMPUxfzqQnYJlB+gLkgW2t/YJ+IF1eMShFjdEKE6Wgzw9/i41/E6xg nmCP95bJN36hAR7tBP95tpxYxeFvEQOf1PjjxGPX/npCCV1YzTbGBmFVb7cBAnRgtDosFv C64EwFwZ7Rr40u4XUMEueLJrDrHLxoxo0rUpaRuoKeyJ54f5aZeC77Jse869Hw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734222389; a=rsa-sha256; cv=none; b=Y7VygcS6cUljqF+l7EOS7j46AuZxq1w3qFJP4sAwWigaBrOg+wCRY/D14zRK4i+dIAkcuJ /sxm8rgZN088oPWLm2HWD+hQg5ZqxcQkG3uXMN+TI2hb7TiwlpB/+ZywJIZJ0HjKzf85WP DYBnZQj4WchxJKqP88IFVYh8AZumA/fSlBe988XxRiSOtvccy/yM5zTypfJsdKrYfAmNj7 Kmd5GUeCw/Gt5170I8q/q1bX3FSx/K7Is1kJY2FzGvG9CBsXfBUJhCQTSBs/5RF0HScTk6 urzxgAP3jdktlGQBVUwJQXpg2J1FvKGNuJsyuhSMdYqX8l5LzxtTRbgPzCEDWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="JOXX+7/R"; dkim=fail ("headers rsa verify failed") header.d=freakingpenguin.com header.s=x header.b=FrC1Avtg; 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"; dmarc=none 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 49E048918C for ; Sun, 15 Dec 2024 01:26:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMcSb-00026u-9o; Sat, 14 Dec 2024 19:26:13 -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 1tMcSY-00026W-Gb for guix-patches@gnu.org; Sat, 14 Dec 2024 19:26:10 -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 1tMcSW-0004Nx-Lq; Sat, 14 Dec 2024 19:26:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=HbTSY4accNNvwaj5F1OJkGCfGOBPJhoEatlK87bkgD0=; b=JOXX+7/RRzo6XToxx7PHV9SnM951rTnBXj7t3vAjhK5eymyRXWZvPOPy202i6IH3NL2/r53TN9VDK3l5sshDGMpvLqkmWlYZkzbSG/wvIUFTeCILrF2C3Jhg2fn1a9xAuTCDxGnxbo2m4nJUvXU4pNpX5wjbERTukWOBdGRqzDnPbQtKPGI0AvGee2VVasCIRZM5hdOm6Hx7acXk+oyPkgjZWifdtkAtxSIbTFuYc5CZUUsHAT8ndQOnwVdKks84inoTDHIwjfPl1OX0tPQIpMeQViug3xAUzrOKjE7t6+/E5pDnVXZjumN+Dh76WlG5fus5n5l0cyuK2Of7edMH2A==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tMcSQ-00018j-3U; Sat, 14 Dec 2024 19:26:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74878] [PATCH 0/2] Improve Guix Subsitute script usage. Resent-From: Richard Sent Original-Sender: "Debbugs-submit" Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Sun, 15 Dec 2024 00:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74878 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74878@debbugs.gnu.org Cc: Richard Sent , Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by submit@debbugs.gnu.org id=B.17342223064036 (code B ref -1); Sun, 15 Dec 2024 00:26:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Dec 2024 00:25:06 +0000 Received: from localhost ([127.0.0.1]:48836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMcRV-00012i-En for submit@debbugs.gnu.org; Sat, 14 Dec 2024 19:25:05 -0500 Received: from lists.gnu.org ([209.51.188.17]:38592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMcRQ-00010s-G9 for submit@debbugs.gnu.org; Sat, 14 Dec 2024 19:25:03 -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 1tMcRQ-0001xp-5O for guix-patches@gnu.org; Sat, 14 Dec 2024 19:25:00 -0500 Received: from mail-108-mta87.mxroute.com ([136.175.108.87]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMcRO-00049b-28 for guix-patches@gnu.org; Sat, 14 Dec 2024 19:24:59 -0500 Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta87.mxroute.com (ZoneMTA) with ESMTPSA id 193c7b420fb0003e01.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sun, 15 Dec 2024 00:24:51 +0000 X-Zone-Loop: 0867106675e42a653dd83e613b0e2e8c92b5d0d48465 X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=HbTSY4accNNvwaj5F1OJkGCfGOBPJhoEatlK87bkgD0=; b=FrC1AvtgaPKU13QnKbl0XNNDPo K24UDxtpgPfL4/cJmh2VBq8xZHobo71oKpLi8NtUwMZ5T02lBm8Z4DbP5JCq57YlACAYirVAKyZzo c3OXIBk4aipvQ5yhMEXsN2NGYZF/qFbQI/ydJB4v/NUSsqQU22jBzEwHbXuEfZTHo6d2aK5PMd0Ql 4CzTcDFmKZePfGdEXA0qc9i2vOR0lkgIzo5Dl01F85WhA7f4vIrHNqY+abI23qqqXTg528sEzEWPp h7qKCrrhhlCTGK8lEKOfS6ngYZey0FaIsLDTPlO+PDckEVmD/6mU5rGq1dZcLKG0oZ6OFfVcQwTav 13nNlmTQ==; From: Richard Sent Date: Sat, 14 Dec 2024 19:23:35 -0500 Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Id: richard@freakingpenguin.com Received-SPF: pass client-ip=136.175.108.87; envelope-from=richard@freakingpenguin.com; helo=mail-108-mta87.mxroute.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.71 X-Spam-Score: -4.71 X-Migadu-Queue-Id: 49E048918C X-Migadu-Scanner: mx11.migadu.com X-TUID: /NuRXbftjlfG Hi all, A common question I hear is "why is guix updating substitutes so many times". My thinking is by adding the number of substitutes being updated to guix/scripts/substitute.scm, it might be a bit clearer that something different is happening every time. (This was a very "fun" adventure. Originally I used ~:*~p to refer to the previous argument, but that emits a warning in Guile because format-string-argument-count doesn't seem to handle ~:*. Fortunately a commit [1] by Ludo in 2014 showed me I could use ~:p instead.) I also tweaked the help output since I found it a bit unclear. I know it's an internal tool, but unless I'm missing something (I very may be) the previous help output seemed almost misleading. Note that if anyone tests this you won't see any changes in regular guix CLI usage unless/until the guix package proper is updated. Instead, you can use commands like: echo "have /gnu/store/0zahq56kff8cfrq9xhkq5wi2zdkysj6b-emacs-29.1" | guix substitute --query [1]: 8ac39b38 Richard Sent (2): scripts: substitute: Report the number of substitutes being updated. scripts: substitute: Improve the help output. guix/scripts/substitute.scm | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) base-commit: 64ac17035d66d98d3081bc7fc558c33e1be8e4f4 -- 2.46.0