GNU bug report logs - #46782
guix environment --expose options cannot be layered onto $PWD

Previous Next

Package: guix;

Reported by: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Date: Thu, 25 Feb 2021 21:13:01 UTC

Severity: normal

Tags: patch

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Josselin Poiret <dev <at> jpoiret.xyz>
To: bokr <at> bokr.com, Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 46782 <at> debbugs.gnu.org, bbb ee <blasforr <at> gmail.com>, Simon Tournier <zimon.toutoune <at> gmail.com>
Subject: bug#46782: guix environment --expose options cannot be layered onto $PWD
Date: Mon, 13 Feb 2023 22:17:09 +0100
[Message part 1 (text/plain, inline)]
Hello everyone,

A quick strace shows that it's actually an ordering issue: /home/user is
mounted in the container after /home/user/tmp.  The fix is pretty
simple, moving the cwd first, before the explicit --expose arguments.

I'm noticing that the --expose option creates an empty tmp folder in the
user's home in that case though, which I don't like, however I don't
think there's any better option.  Patch following.

Best,
-- 
Josselin Poiret
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 2 years and 78 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.