From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WCjEGmFAZWMvgwAAbAwnHQ (envelope-from ) for ; Fri, 04 Nov 2022 17:40:01 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gJ3mGWFAZWOR0wAAG6o9tA (envelope-from ) for ; Fri, 04 Nov 2022 17:40:01 +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 241C131579 for ; Fri, 4 Nov 2022 17:40:01 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqzjF-0005IY-SC; Fri, 04 Nov 2022 12:39:37 -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 1oqzjE-0005GT-6d for help-guix@gnu.org; Fri, 04 Nov 2022 12:39:36 -0400 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqzjC-0003sh-7Z for help-guix@gnu.org; Fri, 04 Nov 2022 12:39:35 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id A7DAD40E28; Fri, 4 Nov 2022 17:39:31 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FLDeCPIDTa82; Fri, 4 Nov 2022 17:39:30 +0100 (CET) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1667579970; bh=0CSt2xUg37lhQVacfIVgVlJPdC6E1dtt09gMVwsC6s8=; h=Date:To:Subject:From:References:In-Reply-To:From; b=H6Ni5hSFNgzhusX2hs/dpdsfIIHI0idaoDix3v6pfT22v+ZtBQ6SlJ1yxrvcH3KQJ U3585E3uddFoshPdMokmom7uHinNVjPL7R2topyqS5NLv32NQl8j5xBKAoiX5o+bzK HpP4Iqr5NWxrr0kuMlWNO0i6WO71sjvFCeuquwo22MxqvJxbxa1p5Y1Lq9je6lKnbI DY7rg2RLppMU3GTdVYdaKP8c4vhILg0RXinw2+F0TBoBC43+Q9mQxXjDPfkPK9ceCo ylshgQrd05Wp1Zq+Gp6Ex3cQ8Y4CybOQG3Xl2z4oFGNQpRLQIm10c3j+RMdNOAYYe/ 9lLAatq5E2rjQ== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 04 Nov 2022 16:39:29 +0000 Message-Id: To: "zimoun" , "jgart" , "Guix Help" Subject: Re: which package gets built first? From: "(" References: <20221104003432.GB9043@dismail.de> <86wn8b3v8e.fsf@gmail.com> In-Reply-To: <86wn8b3v8e.fsf@gmail.com> Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@disroot.org; helo=knopi.disroot.org 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, 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=1667580001; 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=vreXs3uq16Lk62eTpiscqkYV1Yr/ieY1qS2wZGou2LE=; b=odphX63jD8FAsUl0UJdiPwpwC/dwZK6Xl4XunHecG2seEi7FKVN/2/OsSmgGC8pLs+h6Jv vU027rUlO5CMSpVLE7J+NcrY1IcQu4Nefo16AbJV5NRnGMu2EwEmVJPD8lYXWvZY1VJ8xo by2mup4ytzGXA9AZzEWyFApYkad+tpNMUdIgREvvhxxljoCYDhvflk9eH/M3r5YpsuvCiK TK5SoACBzzLH6xGhDz7oKhsE+ckJoZeE4g0E119H8Sd7mXa6Ue2ZXVVvGz/MAcNNMsQ6oA 2wWHYfhGv2HxuN+VcwjOjY/MhTcEffBbPjAdcBSbBnKeZ0iuSLFOKhsSNTW7Ww== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667580001; a=rsa-sha256; cv=none; b=nkScW7jWA6ppA84asKvHIrQjrsO5+NFw/YWX2P/yDwK3pB9nXz+MyRcYJSX7hfblnlsCfp tP9veI0s32fifRAKAXL/ZsOFNwmOF4Agtcu0RoQy3ay/wTZHOPPsyrIrQKA9QHu2CAYSuS AZ+J7lIuqbfqgeKY9cR4M0e+TgNaqle17jmQimZg0uffCyz2ilc4x4HGplwgv7A8S78B0L 7RhSAxkvmgjqepzYDt2x13GaSxCryf4sN0thZOZKeH+fZwuWcoxe16H3Q16rlNLZH0xrwa KU2R20qDeYBCW6AMEEwcBptkH2Mp5Zy6WQ+BxwmEHP2thxS+5GPzbaMo3w/3lA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=H6Ni5hSF; dmarc=pass (policy=reject) header.from=disroot.org; 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: -3.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=H6Ni5hSF; dmarc=pass (policy=reject) header.from=disroot.org; 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: 241C131579 X-Spam-Score: -3.50 X-Migadu-Scanner: scn0.migadu.com X-TUID: TczpkvCHmj9G Heya, 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: args: (pkg1 pkg2 pkg3) cmds: () args: (pkg2 pkg3) cmds: ((install . pkg1)) args: (pkg3) cmds: ((install . pkg2) (install . pkg1)) args: () cmds: ((install . pkg3) (install . pkg2) (install . pkg1)) I suppose we could add a reverse in this procedure, defined within guix/scripts/package.scm's options->installable: (define to-install (filter-map (match-lambda (('install . (? package? p)) ;; When given a package via `-e', install the first of i= ts ;; outputs (XXX). (package->manifest-entry* (transform p) "out")) (('install . (? string? spec)) (if (store-path? spec) (store-item->manifest-entry spec) (let-values (((package output) (specification->package+output spec))) (package->manifest-entry* (transform package) output)))) (('install . obj) (leave (G_ "cannot install non-package object: ~s~%") obj)) (_ #f)) opts)) -- (