all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: "(" <paren@disroot.org>, jgart <jgart@dismail.de>,
	Guix Help <help-guix@gnu.org>
Subject: Re: which package gets built first?
Date: Fri, 04 Nov 2022 20:40:19 +0100	[thread overview]
Message-ID: <864jve4ifw.fsf@gmail.com> (raw)
In-Reply-To: <CO3NRID7T8GO.3W18QTG1RQ0G4@guix-framework>

Hi,

On Fri, 04 Nov 2022 at 16:39, "(" <paren@disroot.org> 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 ’parse-command-line’ 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 “guix package” but not “guix build” or
“guix shell” or etc.

From my point of view, the reverse should happen in ’parse-command-line’
and so all guix/scripts/<command>.scm would be consistent.

BTW, it is somehow what “guix show” 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


      reply	other threads:[~2022-11-04 21:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-04  5:34 which package gets built first? jgart
2022-11-04  5:35 ` jgart
2022-11-04  9:49 ` zimoun
2022-11-04 16:39   ` (
2022-11-04 19:40     ` zimoun [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=864jve4ifw.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=jgart@dismail.de \
    --cc=paren@disroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.