emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#63234: closed (cached guix shell environment not capturing environme


From: GNU bug Tracking System
Subject: bug#63234: closed (cached guix shell environment not capturing environment variables set in manifest)
Date: Wed, 03 May 2023 02:13:02 +0000

Your message dated Tue, 02 May 2023 22:11:55 -0400
with message-id <87354e17v8.fsf@gmail.com>
and subject line Re: bug#63234: cached guix shell environment not capturing 
environment variables set in manifest
has caused the debbugs.gnu.org bug report #63234,
regarding cached guix shell environment not capturing environment variables set 
in manifest
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
63234: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63234
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: cached guix shell environment not capturing environment variables set in manifest Date: Tue, 02 May 2023 11:34:59 -0400
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



--- End Message ---
--- Begin Message --- Subject: Re: bug#63234: cached guix shell environment not capturing environment variables set in manifest Date: Tue, 02 May 2023 22:11:55 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Hi,

Ludovic Courtès <ludo@gnu.org> writes:

> 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!

Ah!  Okay then :-).  I'll stop using such trick.

-- 
Thanks,
Maxim


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]