From: "Ludovic Courtès" <ludo@gnu.org>
To: Cayetano Santos <cayetano.santos@inventati.org>
Cc: 52347@debbugs.gnu.org
Subject: bug#52347: Shell: error when -m manifest is removed
Date: Wed, 22 Dec 2021 23:49:19 +0100 [thread overview]
Message-ID: <87fsqkxnkg.fsf@gnu.org> (raw)
In-Reply-To: <yu1wnkgkduz.fsf@inventati.org> (Cayetano Santos's message of "Tue, 07 Dec 2021 09:33:35 +0100")
Hi Cayetano,
Cayetano Santos <cayetano.santos@inventati.org> skribis:
> Following command works
>
> guix shell --container -m manifest.scm -- python3
>
> But
>
> guix shell --container -- python3
>
> gives an error. However,
>
> guix shell --container
>
> followed by
>
> python3
>
> works.
>
> So, by just removing the ’-m manifest.scm’ flag, I get an error.
As Liliana noted, this is the intended behavior: auto-loading of
‘manifest.scm’ happens only for interactive use. This is to keep
non-interactive use context-independent and thereby avoid bad surprises.
Note that when ‘manifest.scm’ is auto-loaded, a message is printed; when
it’s not considered, no message is printed. Likewise, when creating an
empty environment, a warning is printed (twice even :-)).
Any suggestions on things we might improve to avoid confusion?
Thanks,
Ludo’.
prev parent reply other threads:[~2021-12-22 22:50 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-07 8:33 bug#52347: Shell: error when -m manifest is removed Cayetano Santos via Bug reports for GNU Guix
2021-12-07 9:26 ` zimoun
2021-12-07 10:07 ` Cayetano Santos via Bug reports for GNU Guix
2021-12-07 10:18 ` zimoun
2021-12-07 10:23 ` Cayetano Santos via Bug reports for GNU Guix
2021-12-07 10:35 ` zimoun
2021-12-07 10:42 ` Cayetano Santos via Bug reports for GNU Guix
2021-12-07 13:12 ` zimoun
2021-12-07 13:33 ` Liliana Marie Prikler
2021-12-07 13:41 ` zimoun
2021-12-07 13:48 ` Liliana Marie Prikler
2021-12-07 14:27 ` zimoun
2021-12-07 16:23 ` Liliana Marie Prikler
2021-12-07 17:11 ` zimoun
2021-12-07 12:02 ` Maxime Devos
2021-12-07 18:11 ` Cayetano Santos via Bug reports for GNU Guix
2021-12-07 19:06 ` Maxime Devos
2021-12-22 22:42 ` Ludovic Courtès
2021-12-22 22:49 ` Ludovic Courtès [this message]
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=87fsqkxnkg.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=52347@debbugs.gnu.org \
--cc=cayetano.santos@inventati.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.