From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aBLYBxiEZWOpSQAAbAwnHQ (envelope-from ) for ; Fri, 04 Nov 2022 22:28:56 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id uBv3BxiEZWNrygAA9RJhRA (envelope-from ) for ; Fri, 04 Nov 2022 22:28:56 +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 C76A02D63B for ; Fri, 4 Nov 2022 22:28:55 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1or4Ec-0004ze-IH; Fri, 04 Nov 2022 17:28:18 -0400 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 1or4Ea-0004zG-VA for help-guix@gnu.org; Fri, 04 Nov 2022 17:28:16 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1or4EZ-0001KP-G6 for help-guix@gnu.org; Fri, 04 Nov 2022 17:28:16 -0400 Received: by mail-wr1-x434.google.com with SMTP id a14so8715865wru.5 for ; Fri, 04 Nov 2022 14:28:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=S81TG9rDi2luHk5qJgBI/RmqiB1gngKKQjplhtB8CuM=; b=FOrdvF48TR59hqOLqT2ivoh5x8eVpOnxyKSSzslP4Z/WJmAk8QNUYoVeSdttzPTVZ7 Qvg0igRFOpTezCbA5lxMBL6H4eZV8RXleAXuj7rxVOVhjNyjGs8ZrATEmMaGtNom+XgU n1YzoXWn1oxgy7COUKvHeFT8bWQ7MaBdkbs8Kn64Prbth9Kt3w+FgAAyj3pYbcTE3iQH TgM9EQENIKFZyCvPns7+BRESHS1CdWCXaMIa9ouxA1mpRkRIe3vMSW2O2Aj5JHklcGKr jbcGeknJb4yDSStMK7pdC51z7+9hjj4puiRZAgGyGpwG9YhfCnAwGyY4i/9dIUqfVwk1 nWMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=S81TG9rDi2luHk5qJgBI/RmqiB1gngKKQjplhtB8CuM=; b=yt1M9f/GABQPbIM8N8oP2MHrmZjDG7zzkqxvJvdZVGOQGvoaRGGcbO2fa8xs+yPnwp 2bq4LhBH9VdSzARNuehODwvxKdbRjYJsn5Xl4mU4mCM4xrpfRknvUTj9E/SGOXyzGVbB kvcnLwq2GbWNhWSWBZRwaB56ncJYXiYqMvnkXe12VmNpme9D3dQ6F7Qk3DnBp14K07Eo DCj6zBokhV3zIL0RdUi5J3HtoB57853C6n3frRAtNNENmbDfyDRg3kHYCLA4Ot+os+0M QIVmXSf0OJ5aWELYMh/pk1R8FKRcnGKR3+clzt4++MgkzpW97MknN62fj4LrlGTmzHGR NP+w== X-Gm-Message-State: ACrzQf3/afMWjmcC1KgiRp6ya4Xbz0fQSqY4x+wND8NOwlc95Z/d03ri x7UKzl3uevIUCLrMsBRvYWuPaMnpU2I= X-Google-Smtp-Source: AMsMyM60kQrRRe/VaYw7V2QRyzc0FY1tGyzgvc7llHBlP4flBFrxyJi2+YpkbSP3QVq1Qr4FTyqw1w== X-Received: by 2002:a05:6000:43:b0:236:d95e:2be with SMTP id k3-20020a056000004300b00236d95e02bemr17355917wrx.478.1667597293201; Fri, 04 Nov 2022 14:28:13 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id bg20-20020a05600c3c9400b003c6bd12ac27sm460936wmb.37.2022.11.04.14.28.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 14:28:12 -0700 (PDT) From: zimoun To: "(" , jgart , Guix Help Subject: Re: which package gets built first? In-Reply-To: References: <20221104003432.GB9043@dismail.de> <86wn8b3v8e.fsf@gmail.com> Date: Fri, 04 Nov 2022 20:40:19 +0100 Message-ID: <864jve4ifw.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x434.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Help-Guix" Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667597335; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=S81TG9rDi2luHk5qJgBI/RmqiB1gngKKQjplhtB8CuM=; b=oZnQlUJu4lmZxZaE5EBVeRNBdxk17pzrA3utcR/wJK4UahEfJ9wrrzM0liqXjVipznlK4w usZF6z2KIQ7nmBhPlxyFQizRES2K4I7GxQAmPGjpESK5jIDDbGw/MiaJ7CaRNUoSZlIE6i UrrKzftJxwNz3mHAjxj1mlo6lUU3PaA+qQrEydLnN9CG3Sac1eoyw3KjTrPEJwQrKLIQQA YGavW/CgHr1QUy8IKokISUQB0bxCrrlNZQmkiwDL5cyrHtf82UJoAEVwg5RhSoKhotVS6f Vyc5XIOze+pce9CRyeWqfSoaCPo0OQkzby0nKEYk7VsxljpA6dX2ib5GhagavA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667597335; a=rsa-sha256; cv=none; b=EyC95FL5ApclsYPL/h7wl8IRowP9IpLgPlRiN+Mq7kCUYWs1rv910hI186zZt70CaKMq78 yroFbEKJi4hxb2/CIm6e5QtnQGV/1nJUr9ZCAoV1retdtXYmFg8EmLzGB0e6kVYHFQxSQx PIQ9lTGXr77ZI6kg9t63VTI+e7RZJCJ0oeZdTvSbScEbKtLmqkj42xjMEaKU/+AJ/OO2KI krsY9XLXi8hDv39PpUBPEjnlWuKIbXOSrCB/4NkCwF0BMpYJlxmhOrZZzzXdZzJSoI4229 jz4jnb4HPDJk1TQiEyOWKm0pXF5iJYL2+LrDU7T0mFvd2yTzoXaZz3nx+RphXA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=FOrdvF48; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=FOrdvF48; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: C76A02D63B X-Spam-Score: -4.50 X-Migadu-Scanner: scn0.migadu.com X-TUID: axigAOIfmkOo Hi, On Fri, 04 Nov 2022 at 16:39, "(" wrote: > On Fri Nov 4, 2022 at 9:49 AM GMT, zimoun wrote: >> Other said, the CLI is somehow parsed from right to left. > > Probably because: Well, it is because =E2=80=99parse-command-line=E2=80=99 from (guix scripts= ), no? > I suppose we could add a reverse in this procedure, defined within > guix/scripts/package.scm's options->installable: This would address a part of =E2=80=9Cguix package=E2=80=9D but not =E2=80= =9Cguix build=E2=80=9D or =E2=80=9Cguix shell=E2=80=9D or etc. >From my point of view, the reverse should happen in =E2=80=99parse-command-= line=E2=80=99 and so all guix/scripts/.scm would be consistent. BTW, it is somehow what =E2=80=9Cguix show=E2=80=9D does with, (define opts (parse-command-line args %options (list (list)) #:build-options? #f #:argument-handler handle-argument)) [...] (guix-package* (reverse opts))) Assuming we would like to parse left-to-right. :-) Cheers, simon