* bug#73294: "guix shell -- anything" does not look for manifests
@ 2024-09-16 12:40 lgcoelho--- via Bug reports for GNU Guix
2024-09-30 21:04 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: lgcoelho--- via Bug reports for GNU Guix @ 2024-09-16 12:40 UTC (permalink / raw)
To: 73294
[-- Attachment #1: Type: text/plain, Size: 792 bytes --]
Hello,
Currently, if you have an authorized manifest available and want to run
some command (for example htop) provided by the manifest, you need to
--8<---------------cut here---------------start------------->8---
$ guix shell
$ htop
--8<---------------cut here---------------end--------------->8---
as supplying a command for guix shell makes it to not look for
manifests, and instead simply create a empty environment.
--8<---------------cut here---------------start------------->8---
$ guix shell -- htop
guix shell: warning: no packages specified; creating an empty
environment
guix shell: error: htop: command not found
--8<---------------cut here---------------end--------------->8---
Which doesn't seems a desirable behavior to me. Could we fix it?
Thanks in advance,
Luis
[-- Attachment #2: Type: text/html, Size: 1413 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#73294: "guix shell -- anything" does not look for manifests
2024-09-16 12:40 bug#73294: "guix shell -- anything" does not look for manifests lgcoelho--- via Bug reports for GNU Guix
@ 2024-09-30 21:04 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2024-09-30 21:04 UTC (permalink / raw)
To: lgcoelho; +Cc: 73294
Hi,
lgcoelho@disroot.org skribis:
> Currently, if you have an authorized manifest available and want to run
> some command (for example htop) provided by the manifest, you need to
>
>
> $ guix shell
> $ htop
>
> as supplying a command for guix shell makes it to not look for
> manifests, and instead simply create a empty environment.
>
>
> $ guix shell -- htop
> guix shell: warning: no packages specified; creating an empty
> environment
> guix shell: error: htop: command not found
>
> Which doesn't seems a desirable behavior to me. Could we fix it?
This is the documented behavior: ‘manifest.scm’ and ‘guix.scm’ are read
only for interactive use, meaning without ‘--’:
https://guix.gnu.org/manual/devel/en/html_node/Invoking-guix-shell.html
The rationale for it is that non-interactive uses of ‘guix shell’ would
always be self-contained.
This was arguably a very conservative choice but I’m not sure we can
change it at this stage. Thoughts?
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-30 21:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-16 12:40 bug#73294: "guix shell -- anything" does not look for manifests lgcoelho--- via Bug reports for GNU Guix
2024-09-30 21:04 ` Ludovic Courtès
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.