all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Carlo Zancanaro <carlo@zancanaro.id.au>
To: Ian Eure <ian@retrospec.tv>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Guix CLI, thoughts and suggestions
Date: Mon, 22 Jan 2024 11:21:54 +1100	[thread overview]
Message-ID: <87plxuz07x.fsf@zancanaro.id.au> (raw)
In-Reply-To: <87ttn7txra.fsf@retrospec.tv> (Ian Eure's message of "Sat, 20 Jan 2024 14:50:56 -0800")

Hi Ian,

On Sat, Jan 20 2024, Ian Eure wrote:
> I agree that this would make sense, but my understanding is that `guix
> package' doesn’t work like that -- it only performs the final
> operation in the list.  IMO, it should either do *everything* the
> commands specify, or print an error and take no action.

It can accumulate multiple commands. As an example, if you create a
profile with a single package in it:

  $ guix package -i hello
  The following package will be installed:
     hello 2.12.1
  ... more output...

then you can remove that package and install another package in a single
transaction:

  $ guix package -r hello -i coreutils
  The following package will be removed:
     hello 2.12.1

  The following package will be installed:
     coreutils 9.1
  ... more output...

The inconsistency here is that some commands can be combined
(specifically adding and removing), whereas others cannot (probably
everything else).

> I agree, I don’t think the situation can be improved without finding a
> solution to preserve BC.  But, I didn’t think it was worth making
> detailed plans for any of this before gauging whether the problem was
> one broadly considered to be worth solving.

I think it would be great to have a consistent CLI, so I would love it
if we were able to solve this problem.

Carlo


  reply	other threads:[~2024-01-22  0:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-15 19:24 Guix CLI, thoughts and suggestions Ian Eure
2024-01-15 21:01 ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
2024-01-15 22:08 ` Carlo Zancanaro
2024-01-20 22:50   ` Ian Eure
2024-01-22  0:21     ` Carlo Zancanaro [this message]
2024-02-04 12:21       ` Rostislav Svoboda
2024-01-17  7:21 ` Efraim Flashner
2024-01-18 13:51   ` Rostislav Svoboda

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=87plxuz07x.fsf@zancanaro.id.au \
    --to=carlo@zancanaro.id.au \
    --cc=guix-devel@gnu.org \
    --cc=ian@retrospec.tv \
    /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.