unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#47786: Several build --keep-failed result in wrong env variables
@ 2021-04-15  2:31 Dmitry Matveyev
  2021-04-15 17:06 ` Leo Famulari
  2021-04-15 20:24 ` Mark H Weaver
  0 siblings, 2 replies; 4+ messages in thread
From: Dmitry Matveyev @ 2021-04-15  2:31 UTC (permalink / raw)
  To: 47786

Hello,

I use guix on Arch Linux, version
050be36cbf3a42199f64f2e44c59f1cb1b3afab5.

Several invocations of guix build --keep-failed creates directories in
/tmp like this one guix-build-hello-2.10.drv-0 for 1st build and then
guix-build-hello-2.10.drv-1 for 2nd and so on (with last digit
increasing). But environment variables for all of them are set to point
to the very 1st directory.

Reproduce:

$ guix build --check --keep-failed hello
^C
$ guix build --check --keep-failed hello
^C
$ cd /tmp/guix-build-hello-2.10.drv-1/
$ grep PWD environment-variables
export OLDPWD
export PWD="/tmp/guix-build-hello-2.10.drv-0/hello-2.10"

Here although we are in directory /tmp/guix-build-hello-2.10.drv-1/, PWD
is set to .drv-0 directory.

Regards,
Dmitry.




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

end of thread, other threads:[~2021-04-16 14:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15  2:31 bug#47786: Several build --keep-failed result in wrong env variables Dmitry Matveyev
2021-04-15 17:06 ` Leo Famulari
2021-04-15 20:24 ` Mark H Weaver
2021-04-16  4:49   ` Dmitry Matveyev

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).