From: "Ludovic Courtès" <ludo@gnu.org>
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Cc: 63234@debbugs.gnu.org
Subject: bug#63234: cached guix shell environment not capturing environment variables set in manifest
Date: Tue, 02 May 2023 17:48:57 +0200 [thread overview]
Message-ID: <87ilda7mza.fsf@gnu.org> (raw)
In-Reply-To: <87o7n23fx8.fsf@gmail.com> (Maxim Cournoyer's message of "Tue, 02 May 2023 11:34:59 -0400")
Hi,
Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
> Consider the following manifest.scm file:
>
> (setenv "DUMMY" "hello")
>
> (packages->manifest
> (map specification->package
> (list "hello")))
>
>
> Running:
>
> $ guix shell --rebuild-cache -m manifest.scm -- sh -c 'echo $DUMMY'
> hello
>
> $ guix shell -m manifest.scm -- sh -c 'echo $DUMMY'
>
> I think this is a recent behavior change, otherwise I wouldn't have
> gotten fond of that trick ;-).
Hmm, I don’t think it’s a recent change. It’s a trick that might work
“by chance” but cannot be relied on.
Not-a-bug to me!
Ludo’.
next prev parent reply other threads:[~2023-05-02 15:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-02 15:34 bug#63234: cached guix shell environment not capturing environment variables set in manifest Maxim Cournoyer
2023-05-02 15:48 ` Ludovic Courtès [this message]
2023-05-03 2:11 ` Maxim Cournoyer
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=87ilda7mza.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=63234@debbugs.gnu.org \
--cc=maxim.cournoyer@gmail.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.