[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50960] [PATCH 00/10] Add 'guix shell' to subsume 'guix environment'
From: |
Ludovic Courtès |
Subject: |
[bug#50960] [PATCH 00/10] Add 'guix shell' to subsume 'guix environment' |
Date: |
Thu, 07 Oct 2021 10:34:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hi Konrad,
Konrad Hinsen <konrad.hinsen@fastmail.net> skribis:
> Looking at the proposal and then the discussion, I wonder if the main
> issue with "guix shell" is that it's two very different things wrapped
> into one:
>
> 1) A convenience utility for interactive work, in particular software
> development, implemented as "guix shell" with no arguments.
>
> 2) A modernized "guix environment" for both interactive and scripting
> use.
To me it’s the same as ‘guix environment’, but with a slightly different
command-line interface; ‘guix environment’ was already serves these two
use cases.
> The behavior of "guix shell" with and without arguments is sufficiently
> different, which will make it a challenge to document, and then a
> challenge for users to understand. And part of the criticism related to
> the tacit execution of files is about the convenience for 1) vs. the
> risk in 2).
‘guix shell’ without arguments is equivalent to ‘guix environment -f
guix.scm’ or ‘guix environment -m manifest.scm’.
> So... how about making this two different commands? They could of course
> share most of the implementation.
>
> I'd use "guix shell" for the scenario that actually starts a shell, and
> something different, perhaps "guix process", for the infrastructure
> command for use in scripts.
I don’t think there’s enough to warrant two different commands (and
perhaps we could leave out the auto-detection of ‘guix.scm’ or
‘manifest.scm’ is that proves to be too controversial).
Maybe you’re hinting at the name and the fact that it suggests it’s
starting a shell. I’m not fond of it, notably for that reason. For the
record, it came out as the only proposal that seemed viable to me:
https://issues.guix.gnu.org/38529#17
Thoughts?
Thanks for your feedback,
Ludo’.
- [bug#50960] [PATCH 00/10] Add 'guix shell' to subsume 'guix environment', (continued)
[bug#50960] [EXT] [bug#50960] [PATCH 00/10] Add 'guix shell' to subsume 'guix environment', Thompson, David, 2021/10/04
[bug#50960] [PATCH 00/10] Add 'guix shell' to subsume 'guix environment', zimoun, 2021/10/11
[bug#50960] [PATCH 00/10] Add 'guix shell' to subsume 'guix environment', Konrad Hinsen, 2021/10/06
- [bug#50960] [PATCH 00/10] Add 'guix shell' to subsume 'guix environment',
Ludovic Courtès <=
[bug#50960] [PATCH 00/10] Add 'guix shell' to subsume 'guix environment', Stefan, 2021/10/09
[bug#50960] [PATCH v2 00/11] 'guix shell' strikes again, Ludovic Courtès, 2021/10/11
[bug#50960] [PATCH v2 01/11] packages: Add 'package-development-inputs'., Ludovic Courtès, 2021/10/11