* bug#47919: Sourcing environment-variables may send to wrong directory
@ 2021-04-20 20:37 Alexandre Hannud Abdo
2021-04-20 21:20 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2024-01-12 21:32 ` Alexandre Hannud Abdo
0 siblings, 2 replies; 3+ messages in thread
From: Alexandre Hannud Abdo @ 2021-04-20 20:37 UTC (permalink / raw)
To: 47919
Ni!
While debugging a package definition I met the following odd behavior:
On subsequent failed builds, if I go to build dir and source
'environment-variables', this is what happens:
/tmp/guix-build-[package].drv-1$ source environment-variables
/tmp/guix-build-[package].drv-0/[package]$
See how I source it in failed build '-1', but my cwd gets changed to
failed build '-0'!
Cheers,
ale
.~´
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#47919: Sourcing environment-variables may send to wrong directory
2021-04-20 20:37 bug#47919: Sourcing environment-variables may send to wrong directory Alexandre Hannud Abdo
@ 2021-04-20 21:20 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2024-01-12 21:32 ` Alexandre Hannud Abdo
1 sibling, 0 replies; 3+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2021-04-20 21:20 UTC (permalink / raw)
To: Alexandre Hannud Abdo; +Cc: 47919
[-- Attachment #1: Type: text/plain, Size: 656 bytes --]
Alexandre,
Alexandre Hannud Abdo writes:
> /tmp/guix-build-[package].drv-1$ source environment-variables
> /tmp/guix-build-[package].drv-0/[package]$
If Guix used a different build directory depending on how many
previous builds were kept, many builds would become
irreproducible.
Instead, Guix always uses .drv-0 inside the build container. When
you pass --keep and the build fails and .drv-0 already exists on
the host, it's renamed.
If you want ‘environment-variables’ to match the environment
outside of the container, rename /tmp/guix-build-[package].drv-1
to /tmp/guix-build-[package].drv-0.
Kind regards,
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#47919: Sourcing environment-variables may send to wrong directory
2021-04-20 20:37 bug#47919: Sourcing environment-variables may send to wrong directory Alexandre Hannud Abdo
2021-04-20 21:20 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2024-01-12 21:32 ` Alexandre Hannud Abdo
1 sibling, 0 replies; 3+ messages in thread
From: Alexandre Hannud Abdo @ 2024-01-12 21:32 UTC (permalink / raw)
To: 47919-done
Ni! I see. Thanks for the explanation. .~´
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-01-12 21:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-20 20:37 bug#47919: Sourcing environment-variables may send to wrong directory Alexandre Hannud Abdo
2021-04-20 21:20 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2024-01-12 21:32 ` Alexandre Hannud Abdo
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.