all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Konrad Hinsen <konrad.hinsen@fastmail.net>, 37443-done@debbugs.gnu.org
Subject: [bug#37443] [PATCH] scripts: pull: Add options for generation management
Date: Thu, 19 Sep 2019 11:41:44 +0200	[thread overview]
Message-ID: <CAJ3okZ2BQZqc=BHNMg8OLyB2EA2f7rFumY8uqpu7NONam2HCLA@mail.gmail.com> (raw)
In-Reply-To: <87v9toy9wh.fsf@gnu.org>

Hi,

On Thu, 19 Sep 2019 at 10:22, Ludovic Courtès <ludo@gnu.org> wrote:

> >> Now, it’s true that having two different profiles appears to be hard
> >> to grasp for newcomers, as Ricardo was saying just now on IRC.
> >
> > I suspect that the whole idea of profiles (as distinct from the user
> > account) is not obvious. If I ever extend my tutorial to include
> > profiles, I would probably introduce them as persistent environments.
>
> Yeah, that’s what they are, so maybe it’s simpler to present profiles as
> persistent environments.

Coming from Conda package manager, it took me some time to understand;
because the Guix terminology was not what I was expecting from the
Conda terminology (in conda "guix environment" does not exist, and
"guix profile" is called environment).

Profile as persistent environment clarifies, IMHO.


Is it possible to list all my own profiles?


> > And since I am in criticizing mood, the whole Guix management API
> > suffers from bad naming. Consider "guix pull -l". What does it pull?  Or

I agree that "guix pull" should be split into:
 - "guix pull" which actually pulls and builds derivations
 - "guix log" which lists, switches or deletes the pull generation

For example "guix log --news" seems better than "guix pull --news".


> > "guix package –-roll-back", which doesn't roll back a package but a
> > profile.

I am not sure to understand this point. What do you mean?

To me, "guix package" manipulates transactions (states).
i.e., "guix package –-roll-back" roll backs a transaction of a profile.

From section 4.1 Features

  The command provides the obvious install, remove, and upgrade
operations.  Each invocation is actually a _transaction_: either the
specified operation succeeds, or nothing happens.  Thus, if the ‘guix
package’ process is terminated during the transaction, or if a power
outage occurs during the transaction, then the user’s profile remains in
its previous state, and remains usable.


Therefore, from my opinion, the UI seems good enough here.


All the best,
simon

  reply	other threads:[~2019-09-19  9:43 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-18  7:52 [bug#37443] [PATCH] scripts: pull: Add options for generation management Konrad Hinsen
     [not found] ` <handler.37443.B.1568794875811.ack@debbugs.gnu.org>
2019-09-18  8:48   ` Konrad Hinsen
2019-09-18 16:33     ` zimoun
2019-09-18 20:08       ` Konrad Hinsen
2019-09-18 21:18       ` Ludovic Courtès
2019-09-19  9:02         ` zimoun
2019-09-18 21:07 ` bug#37443: " Ludovic Courtès
2019-09-19  6:33   ` [bug#37443] " Konrad Hinsen
2019-09-19  8:20     ` Ludovic Courtès
2019-09-19  9:41       ` zimoun [this message]
2019-09-19 17:22         ` Ricardo Wurmus
2019-09-19 18:17           ` zimoun
2019-09-19 18:47             ` Konrad Hinsen
2019-09-19 19:41           ` [bug#37443] Listing profiles Ludovic Courtès
2019-09-19 10:19       ` [bug#37443] [PATCH] scripts: pull: Add options for generation management Konrad Hinsen
2019-09-19 11:55         ` Ludovic Courtès
2019-09-19 12:23           ` zimoun
2019-09-19 12:35             ` Ludovic Courtès
2019-09-19 17:27               ` zimoun
2019-09-19 13:57           ` Konrad Hinsen

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='CAJ3okZ2BQZqc=BHNMg8OLyB2EA2f7rFumY8uqpu7NONam2HCLA@mail.gmail.com' \
    --to=zimon.toutoune@gmail.com \
    --cc=37443-done@debbugs.gnu.org \
    --cc=konrad.hinsen@fastmail.net \
    --cc=ludo@gnu.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.