unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Josselin Poiret via Bug reports for GNU Guix <bug-guix@gnu.org>
To: Josselin Poiret <dev@jpoiret.xyz>,
	bokr@bokr.com, Maxim Cournoyer <maxim.cournoyer@gmail.com>
Cc: 46782@debbugs.gnu.org, bbb ee <blasforr@gmail.com>,
	Simon Tournier <zimon.toutoune@gmail.com>
Subject: bug#46782: [PATCH] scripts: environment: Mount cwd before user specified --expose.
Date: Mon, 13 Feb 2023 22:31:21 +0100	[thread overview]
Message-ID: <ed8a1f0cc8a3f8e92b2a299bb71feeb88ffa7281.1676323731.git.dev@jpoiret.xyz> (raw)
In-Reply-To: <875yc5clka.fsf@jpoiret.xyz>

* guix/scripts/environment.scm (launch-environment/container): Put cwd mapping
at front of the file system mappings.

Fixes: #46782
---
 guix/scripts/environment.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm
index 46435ae48e..8a1fc3c0ee 100644
--- a/guix/scripts/environment.scm
+++ b/guix/scripts/environment.scm
@@ -767,14 +767,14 @@ (define fhs-mappings
              (append
               (override-user-mappings
                user home
-               (append user-mappings
-                       ;; Share current working directory, unless asked not to.
+               (append ;; Share current working directory, unless asked not to.
                        (if map-cwd?
                            (list (file-system-mapping
                                   (source cwd)
                                   (target cwd)
                                   (writable? #t)))
-                           '())))
+                           '())
+                       user-mappings))
               ;; Mappings for the union closure of all inputs.
               (map (lambda (dir)
                      (file-system-mapping

base-commit: dd724cfad45d76b9dcc5b073876c995715c92a07
-- 
2.39.1





  reply	other threads:[~2023-02-13 21:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-25 21:12 bug#46782: guix environment --expose options cannot be layered onto $PWD Maxim Cournoyer
2022-11-23 14:24 ` bug#46782: bbb ee
2023-01-27 16:19   ` bug#46782: guix environment --expose options cannot be layered onto $PWD Maxim Cournoyer
2023-01-27 17:31     ` Simon Tournier
2023-02-06 21:54       ` Maxim Cournoyer
2023-02-07  1:24         ` bokr
2023-02-13 21:17           ` Josselin Poiret via Bug reports for GNU Guix
2023-02-13 21:31             ` Josselin Poiret via Bug reports for GNU Guix [this message]
2023-03-07  2:23             ` Maxim Cournoyer

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ed8a1f0cc8a3f8e92b2a299bb71feeb88ffa7281.1676323731.git.dev@jpoiret.xyz \
    --to=bug-guix@gnu.org \
    --cc=46782@debbugs.gnu.org \
    --cc=blasforr@gmail.com \
    --cc=bokr@bokr.com \
    --cc=dev@jpoiret.xyz \
    --cc=maxim.cournoyer@gmail.com \
    --cc=zimon.toutoune@gmail.com \
    /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 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).