all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#63234: cached guix shell environment not capturing environment variables set in manifest
@ 2023-05-02 15:34 Maxim Cournoyer
  2023-05-02 15:48 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Maxim Cournoyer @ 2023-05-02 15:34 UTC (permalink / raw)
  To: 63234

Hi Guix,

Consider the following manifest.scm file:

--8<---------------cut here---------------start------------->8---
(setenv "DUMMY" "hello")

(packages->manifest
 (map specification->package
      (list "hello")))
--8<---------------cut here---------------end--------------->8---

Running:

--8<---------------cut here---------------start------------->8---
$ guix shell --rebuild-cache -m manifest.scm -- sh -c 'echo $DUMMY'
hello

$ guix shell -m manifest.scm -- sh -c 'echo $DUMMY'
--8<---------------cut here---------------end--------------->8---

I think this is a recent behavior change, otherwise I wouldn't have
gotten fond of that trick ;-).

-- 
Thanks,
Maxim




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-03  2:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2023-05-03  2:11   ` Maxim Cournoyer

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.