Subject: bug#46782: guix environment --expose options cannot be layered onto $PWD

From: Josselin Poiret <[email-masked]>
Date: Mon, 13 Feb 2023 22:17:09 +0100

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