From: Tobias Geerinckx-Rice via Bug reports for GNU Guix <bug-guix@gnu.org>
To: Alexandre Hannud Abdo <abdo@member.fsf.org>
Cc: 47919@debbugs.gnu.org
Subject: bug#47919: Sourcing environment-variables may send to wrong directory
Date: Tue, 20 Apr 2021 23:20:12 +0200 [thread overview]
Message-ID: <875z0gmz5f.fsf@nckx> (raw)
In-Reply-To: <db37b88c3d5fb402bb39efcb1163191cdff3b72d.camel@member.fsf.org>
[-- 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 --]
next prev parent reply other threads:[~2021-04-20 21:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2024-01-12 21:32 ` Alexandre Hannud Abdo
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=875z0gmz5f.fsf@nckx \
--to=bug-guix@gnu.org \
--cc=47919@debbugs.gnu.org \
--cc=abdo@member.fsf.org \
--cc=me@tobias.gr \
/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.