From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 8AIzIDKiaWckJAEAe85BDQ:P1 (envelope-from ) for ; Mon, 23 Dec 2024 17:47:30 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 8AIzIDKiaWckJAEAe85BDQ (envelope-from ) for ; Mon, 23 Dec 2024 18:47:30 +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=sHEZQYrD; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=d9xDcvq7; 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=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734976050; 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-to: 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=UOpF+a0riw2lCg6/X8ppxXgNPKF/Rw0SrEoyRTzeDew=; b=XAWCBXHTe4KdcJS1ocaejdSAfLkjHIEkANs5d+mbXY6PRdvVXol4ImdWUu6B3as+uPcqMM e8sAFgxxEbTUWlX4k3n2CMIhcEDO/MbXDN5KlUaKG0OLiF4zBczTgi1F/1lwlz2i2s/HjA KvIzuJSp/hdMg2FI3WXhN0KJou68ykE/QXVIx4mx37O9CLA1TTRG6tWZvm9hXxywvOHwiE OKOdqwOoi+7eTDHO+eUl92qxucSuNvQoJvbkgZ7nTqxym8IJmulT8L/729pjme5RphkxLI xVUG+E3tjc67M62iAQFIsRXJOu31r6RvTxp8GmzfIAS9cZfPOCGNCLALzSmIDA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=sHEZQYrD; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=d9xDcvq7; 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=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734976050; a=rsa-sha256; cv=none; b=UDmaLPQwjDj//ut59xJ6atxEBX/CNgReAuS5KIzU24ukunlyLb/8aJRAWdnP7+qgkypij3 A7rCOjgVcPDNMeS1zFuhtYSbeACkoxG5ldWaUCUjEOyIcdzLFMMZyaik1kbEp6FKzTD5qc od8pLaXBD0mDG2z3KPx54spz2GU4xl9b2r7EqoxqcNh/4eIVAfrvV/yUGY3UBIxg/X2ExH bk3HH1QU+LsDGORgI+0CNl8D6Mry7WgzPdD9u0Z9KJvssBdFL2qCGIemBXTdpM8q+wGzZp saGfBBi/gGdYVepN15wC67+PbaI9ZiwqHZx98hiktXFDJJMyXzVjEDADCRe5pQ== 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 343EF8A600 for ; Mon, 23 Dec 2024 18:47:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPmWW-0004oI-8o; Mon, 23 Dec 2024 12:47:20 -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 1tPmWF-0004mF-Qp for guix-patches@gnu.org; Mon, 23 Dec 2024 12:47:06 -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 1tPmWF-0005Pt-ID for guix-patches@gnu.org; Mon, 23 Dec 2024 12:47:03 -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:References:In-Reply-To:From:To:Subject; bh=UOpF+a0riw2lCg6/X8ppxXgNPKF/Rw0SrEoyRTzeDew=; b=sHEZQYrDsOJmGBSP27UanM2bFmb3BuOQhGUqtMwbbVh1WpRVg5/EO1TmCkFbwYQq/qGApfOdjsHAWt9o1MoSmb5CLq/En2uv8X2zl9AXvehwuHRkDDqMzDLKV6UYd8AkejKztrhNmVCzyrMnR83dTWrV5B7Zfq5wLmB81ah/IeDpWScjukX9E/i53nmX92X6pHhJazW/ZEFKqu71ZbzB+XELJLkEre1tictFVyz31eNT38NM3sL4qQMxMkyOO4zhUXaXDCVPP1/9k9PjNmO5jtbBUomGxctFn74gCcFChFai9LZf1Gvy6T1XVabaJceUk8Gya04mtKyTrpv+cWD5iQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPmWE-0001Gt-Ul for guix-patches@gnu.org; Mon, 23 Dec 2024 12:47:03 -0500 Subject: bug#74961: [PATCH] scripts: deploy: Add the expression command line flag. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Mon, 23 Dec 2024 17:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 74961 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Richard Sent Cc: Josselin Poiret , Simon Tournier , Mathieu Othacehe , Tobias Geerinckx-Rice , Christopher Baines , 74961-done@debbugs.gnu.org Mail-Followup-To: 74961@debbugs.gnu.org, ludo@gnu.org, richard@freakingpenguin.com Received: via spool by 74961-done@debbugs.gnu.org id=D74961.17349760164862 (code D ref 74961); Mon, 23 Dec 2024 17:47:02 +0000 Received: (at 74961-done) by debbugs.gnu.org; 23 Dec 2024 17:46:56 +0000 Received: from localhost ([127.0.0.1]:56000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPmW7-0001GM-Im for submit@debbugs.gnu.org; Mon, 23 Dec 2024 12:46:55 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45958) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPmW5-0001G9-Gr for 74961-done@debbugs.gnu.org; Mon, 23 Dec 2024 12:46:54 -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 1tPmVz-0005Nu-KT; Mon, 23 Dec 2024 12:46:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=UOpF+a0riw2lCg6/X8ppxXgNPKF/Rw0SrEoyRTzeDew=; b=d9xDcvq7vT8bYlx4cOWI BSSYGMUU3/y16q9WEQ45pw2Q6B/2o0fZUSM4I+KqB3poNG4HolvaSS53iDFGXoevhPWIoAbS1RGy7 WU2OVitDGYpaxQAaMbRTTGAMurtG0kkWiNLWoQKkLVP1XFeprBn7VXhmPFT2DNh1dFExSPaSEYy98 lg9aFvZu7pQ5dIGUpURHZ4N1VDz7FQvrQSQep1IO1tB/2T8T3EcTe0SfR1EBWMR8FW3x9qFarpJxf m0Nt5NnxxujermH7zmsWSKTF1T2pkFqA/K4eTJO2/z/H5CQISHitqthdoMEb2+appfv/KZbK5UyzA UzsUDkadi+789Q==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <6a3be28b8325e18076a01b9a9a60d22f4b8b866d.1734586672.git.richard@freakingpenguin.com> (Richard Sent's message of "Thu, 19 Dec 2024 00:37:52 -0500") References: <6a3be28b8325e18076a01b9a9a60d22f4b8b866d.1734586672.git.richard@freakingpenguin.com> Date: Mon, 23 Dec 2024 18:46:41 +0100 Message-ID: <87bjx28f7i.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -4.31 X-Spam-Score: -4.31 X-Migadu-Queue-Id: 343EF8A600 X-TUID: VZBYalEbGkxD Richard Sent skribis: > * guix/scripts/deploy.scm (show-help): Add help. > (%options): Add -e and --expression. > (guix-deploy): Use expression and check for invalid flag combinations. > > Change-Id: I200c9ff0c9a8c686efff4a21cd33c10429f3c73e Applied. > Submitting a patch to take care of https://issues.guix.gnu.org/71841. > Always struck me as odd that deploy doesn't have a --evaluate flag > like many others, so here's a go at it. > > I didn't update documentation because "invoking guix deploy" still has > a TODO stating > >> @c FIXME/TODO: Separate the API doc from the CLI doc. > > As is there doesn't seem to be a good place to insert --expression > documentation without sidetracking the info page. Yeah. We should probably move the first half of the existing material in a =E2=80=9CGetting Started=E2=80=9D subsection, the second half in the = =E2=80=9CDefining Machines=E2=80=9D subsection, and then insert an =E2=80=9CInvoking guix dep= loy=E2=80=9D subsection with the CLI reference somewhere. Food for thought. :-) [...] > + (expression (assoc-ref opts 'expression)) As a followup, it would be nice to have an =E2=80=98ensure-machine-list=E2= =80=99 or something, similar to how (guix scripts build) has =E2=80=98ensure-manifest= =E2=80=99 & co. to validate its arguments. Thanks, Ludo=E2=80=99.