GNU bug report logs -
#52347
Shell: error when -m manifest is removed
Previous Next
Reported by: cayetano.santos <at> inventati.org
Date: Tue, 7 Dec 2021 08:41:02 UTC
Severity: normal
Merged with 53892
Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #59 received at 52347 <at> debbugs.gnu.org (full text, mbox):
Hi Cayetano,
Cayetano Santos <cayetano.santos <at> 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’.
This bug report was last modified 3 years and 78 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.