From: Vagrant Cascadian <vagrant@debian.org>
To: "Ludovic Courtès" <ludo@gnu.org>, sirgazil <sirgazil@zoho.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Adding a subcommand "load-profile"
Date: Sun, 03 May 2020 13:56:43 -0700 [thread overview]
Message-ID: <875zdcivp0.fsf@ponder> (raw)
In-Reply-To: <87ftcgwyjq.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 2113 bytes --]
On 2020-05-03, Ludovic Courtès wrote:
> sirgazil <sirgazil@zoho.com> skribis:
>> ---- On Tue, 28 Apr 2020 22:42:53 +0000 Roel Janssen <roel@gnu.org> wrote ----
>> > We added a subcommand in the "guixr" script called "load-profile". It allows a
>> > user to do the following:
>> > --------------------------------------------------------------------------------
>> > $ guixr package -i ... -p /my/profile
>> > $ guixr load-profile /my/profile
>> > [env]$
>> > # ... A new shell is spawned here.
>> > # Inside this shell only the environment variables in
>> > # /my/profile/etc/profile are set ...
>> > [env]$ exit
>> > # Return to the normal shell state
>> > --------------------------------------------------------------------------------
>
> [...]
>
>> Personally, I think managing Guix profiles is currently difficult, and I would like to have commands like this one to make it easier.
>
> I’m interested in your feedback then.
>
> To me, there are already several ways to do that, notably:
>
> 1. guix environment (but it’s slower)
>
> 2. sh
> . /my/profile/etc/profile.sh
> exit
>
> 3. sh
> eval `guix package -p /my/profile --search-paths`
> exit
>
> Options #2 and #3 are more verbose, and less obvious to someone not
> familiar with the shell.
The only way i understand how to trivially get a precise environment is
"guix environment --pure --ad-hoc package1, package2, ... packageN"
Don't options #2 and #3 also include everything from the default profile
and system profile?
I like the ability to maintain separate profiles and run "guix upgrade
-p my/profile" on each profile, but I haven't figured out how to get
something equivalent to "guix environment --pure --profile my/profile".
I find this useful when updating diffoscope or reprotest packages, which
tend to have a lot of suggested optional packages that aren't really
hard dependencies.
This looks "load-profile" subcommand seems to attempting to meet that
use-case, if I'm reading it correctly?
live well,
vagrant
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
next prev parent reply other threads:[~2020-05-03 20:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-28 15:42 Adding a subcommand "load-profile" Roel Janssen
2020-04-28 16:54 ` zimoun
2020-04-29 12:47 ` Roel Janssen
2020-04-29 13:48 ` zimoun
2020-04-29 19:14 ` Roel Janssen
2020-04-28 17:34 ` sirgazil
2020-05-03 20:31 ` Ludovic Courtès
2020-05-03 20:56 ` Vagrant Cascadian [this message]
2020-05-04 13:36 ` zimoun
2020-05-05 8:52 ` Ludovic Courtès
2020-05-04 13:34 ` zimoun
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=875zdcivp0.fsf@ponder \
--to=vagrant@debian.org \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
--cc=sirgazil@zoho.com \
/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.