all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: Ricardo Wurmus <rekado@elephly.net>
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 20:17:51 +0200	[thread overview]
Message-ID: <CAJ3okZ25MVNFXJ0Q-PR3WJv1kL0f634Qo9+bNLkPVBwJWcPddw@mail.gmail.com> (raw)
In-Reply-To: <877e64nqtz.fsf@elephly.net>

Hi Ricardo,

On Thu, 19 Sep 2019 at 19:23, Ricardo Wurmus <rekado@elephly.net> wrote:

> Instead of providing a “guix profile” command, another option would be
> to merge “guix package” and “guix environment” to just “guix
> env[ironment]”.  We could finally get rid of “guix environment
> --ad-hoc” while we’re at it :)

Thank you to feed my thoughts.

Your propose something like:

guix package -i foo
  -> guix env -i foo
guix environment guile --ad-hoc emacs --pure
  -> guix env --deps=guile -i emacs --pure

But what becomes:
 guix environment --ad-hoc foo
  -> guix env -i foo --name-it ?

I agree that this merge seems to ease the introduction of Guix
concepts by smoothing the gap with the other package managers. Kind
of. :-)


> > Is it possible to list all my own profiles?
>
> Not with a simple command, but Guix does keep links to profiles.  Take a
> look here:
>
>     /var/guix/gcroots/profiles/per-user/zimoun/

Thank you for explaining.

Hum? I have profiles which are not listed there.
I only see current-guix and guix-profile (and their generations).


Well, with the package manager Conda, there is an "useful" command:
 conda info --envs
which list all the "conda environments" (i.e., "guix profile") created
with "conda create -n foo" (i.e., "guix package -p foo").
(it is ease in conda world because the user cannot create the
environment/profile wherever they wants)

Because some weeks/month can separate two sessions of work in one
particular profile, in general I do not remember its name. And because
you can create the profile wherever you want, I sometimes spend some
time to reach this profile. It is annoying. :-)
So, the solution that I use is to create one folder containing all my
profiles or to put in the project folder. It is good practise, I
guess. But discipline is hard. ;-)

I would find more convenient to be able to list them.
(bikeshedding? ;-)


> I’m not convinced this would actually be an improvement.  We need to
> avoid sub-command inflation.

Naming is hard. ;-)


All the best,
simon

  reply	other threads:[~2019-09-19 18:19 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
2019-09-19 17:22         ` Ricardo Wurmus
2019-09-19 18:17           ` zimoun [this message]
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=CAJ3okZ25MVNFXJ0Q-PR3WJv1kL0f634Qo9+bNLkPVBwJWcPddw@mail.gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=37443-done@debbugs.gnu.org \
    --cc=konrad.hinsen@fastmail.net \
    --cc=rekado@elephly.net \
    /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.