From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id WhepD1mgBmRDUgAASxT56A (envelope-from ) for ; Tue, 07 Mar 2023 03:24:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id YBLKDlmgBmQgHwAA9RJhRA (envelope-from ) for ; Tue, 07 Mar 2023 03:24:25 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B7D2921988 for ; Tue, 7 Mar 2023 03:24:24 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=HmobeZQ8; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678155865; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-to:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=k/Dw/QvQ/fnzIfEUEV3myuWvgG7CCUJ1GJ/U/vWqGco=; b=EupC1qbsghP6+3/kr76NXhdPdgf99jlPu03L894hB5ZTTLI6h0Vpbse+8KRoZib3Nx8g6S 0dHI+y6ENlIkO+iAVQQgEex0XLP+23+ybrjPZcXyXfPZ1Een0eP5DwqtdVOTZwH6BcQ+kF S16gUJNnkIFca1SOD4N2ujfCzll3zRBPnQYtr1WmgJF8ljy8pcFoE8CznHTSmayoBfote3 ch2mgbN4rtu99cPONQNz5Uge7kQPbAq4YTbP+60pQG9DDz57jlIAQapaWs4AJEITNqlJKo edroz3xlSZXE7OPw2gVg+g6zJy/UYYbvbOPAbg0nAHKENPMrzd/zqYF4BUCvvA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678155865; a=rsa-sha256; cv=none; b=ZoGgV6Xmw4f4u98Tb/IGScV+Os5oZxTb//12JjGjWoK3ahncwtCrAXt0uteKptzHMNWcjF 6rU8GT1wv9lCMw2E2cs64kbikaiOXFfrRM5xaNSM3zJAoTedmcV9PpZSzv1CRSsRr42NMM XWHiXP+HzkSVpqXZ+tqKGXtiRXFNGSJlkYPAC0sA7q75z/r5ooXkphjWCWhUW89rGabRmt ZuveHgOYzlmG1gQQyGAQyYjzKf63rY9MljXC2uSVX0OmS1O4ugZC/k2e7Q6vecJWSEKrjj 2rYJb96ugW553iphoyOStjTq8vf5jAJCWc5EZlaVr0MP51T5AGdkjOP+lC+7PQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=HmobeZQ8; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZMzk-0005Mu-Fu; Mon, 06 Mar 2023 21:24:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZMzi-0005MY-IQ for bug-guix@gnu.org; Mon, 06 Mar 2023 21:24:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZMzi-0008JI-7l for bug-guix@gnu.org; Mon, 06 Mar 2023 21:24:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pZMzh-0008Pw-Up for bug-guix@gnu.org; Mon, 06 Mar 2023 21:24:01 -0500 Subject: bug#46782: guix environment --expose options cannot be layered onto $PWD Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Tue, 07 Mar 2023 02:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 46782 X-GNU-PR-Package: guix X-GNU-PR-Keywords: patch To: Josselin Poiret Cc: 46782-done@debbugs.gnu.org, bokr@bokr.com, bbb ee , Simon Tournier Mail-Followup-To: 46782@debbugs.gnu.org, maxim.cournoyer@gmail.com, maxim.cournoyer@gmail.com Received: via spool by 46782-done@debbugs.gnu.org id=D46782.167815581532312 (code D ref 46782); Tue, 07 Mar 2023 02:24:01 +0000 Received: (at 46782-done) by debbugs.gnu.org; 7 Mar 2023 02:23:35 +0000 Received: from localhost ([127.0.0.1]:44091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZMzG-0008P6-OO for submit@debbugs.gnu.org; Mon, 06 Mar 2023 21:23:34 -0500 Received: from mail-qv1-f53.google.com ([209.85.219.53]:39730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZMzF-0008Or-Gj for 46782-done@debbugs.gnu.org; Mon, 06 Mar 2023 21:23:34 -0500 Received: by mail-qv1-f53.google.com with SMTP id ks17so8078207qvb.6 for <46782-done@debbugs.gnu.org>; Mon, 06 Mar 2023 18:23:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678155808; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=k/Dw/QvQ/fnzIfEUEV3myuWvgG7CCUJ1GJ/U/vWqGco=; b=HmobeZQ8h4a1Xsgsf5jBBYZcj2umEwZRpH11bf8OEn7M6VIBRVWf0lcsNoOgqjG6GM tZdZEUcRjbJFjrwWrhyx7Ljxr/RuDeFYtb5XbmrBM0ka+kRf+xCSyeGY/N6HpZoaZQUj Z8V661PiiuKmuclrSOH/8oVWSadSZ35+k0d2Jm6F1QZK84rRGmOzPuOasHj+NYi5goJY 9kT/7qoRKwY+ijqDbGx96tQLk/kXHsv6Tgta6rwfMk+zumNXAkuVG6YjIkeUBXOc+VT0 b2q9qQz/YfWMt5ufsP0EpIWpm2CInpTFadr6Kpzuw0S6rCtJf+VOH4hyBZBGg6OsYaCY hQVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678155808; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=k/Dw/QvQ/fnzIfEUEV3myuWvgG7CCUJ1GJ/U/vWqGco=; b=wMbW9wH8ekKZJwQofXhIpZqfVSF54ZnLvpcuqq3nJGb4wq/sICajL1Fg87156r+MMw bfhkcz0WuoItxcTWDAmNWXG+XC3qJxFn3+Z68ME9X7R7R4LRnmgW7uAgUKXw9FLh0BED 4zd1GmwlojqRV09MOVNsjGsUSQRG02gOKQ5S78ISH9jamCJIBG4borFVX1hunYuCBX07 pDcEG2ayN13hZDtSX8iVVotskFDciJoZ0d9wY0z66hPyRQaNYUYNXl38GTxw35V7raHO NOaKkHrbgjKVBfAzaC9e0VPb9NV+5YSmBuZcHFQDDgtzERvH9G84YQ50dxyTCClFL4cb Y/rA== X-Gm-Message-State: AO0yUKXygiQQ3GW/ceK6fdXKeT31Tpx8hjBs4Sp40qMRE3LQ5m7cr3qV BpSQe9BJt346etH1dtsvc24= X-Google-Smtp-Source: AK7set/UcwskmmhjeM2ftK7PbXC5fbhCGuIm4c5IdNGEnHxMJjkPWs96PnZkCLgOeMjyaOQXSYGyUw== X-Received: by 2002:ad4:5d67:0:b0:570:5389:2216 with SMTP id fn7-20020ad45d67000000b0057053892216mr30942110qvb.22.1678155807908; Mon, 06 Mar 2023 18:23:27 -0800 (PST) Received: from hurd ([2607:fad8:4:3::1000]) by smtp.gmail.com with ESMTPSA id p23-20020a05620a057700b0071f0d0aaef7sm8498546qkp.80.2023.03.06.18.23.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Mar 2023 18:23:27 -0800 (PST) From: Maxim Cournoyer References: <87blc797i5.fsf@gmail.com> <877cx8x84p.fsf_-_@gmail.com> <87pmazopdx.fsf@gmail.com> <87r0v2lasz.fsf@gmail.com> <20230207012404.GA3706@LionPure> <875yc5clka.fsf@jpoiret.xyz> Date: Mon, 06 Mar 2023 21:23:24 -0500 In-Reply-To: <875yc5clka.fsf@jpoiret.xyz> (Josselin Poiret's message of "Mon, 13 Feb 2023 22:17:09 +0100") Message-ID: <871qm1z4df.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: X-Spam: Yes X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam: Yes X-Migadu-Queue-Id: B7D2921988 X-Spam-Score: 8.69 X-Migadu-Spam-Score: 8.69 List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: sOxBsI62ao5g Hello Josselin, Josselin Poiret writes: > 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. Thanks for the troubleshooting and patch! I've now applied it. > 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. At least it's better to be left with an empty directory than with mysteriously nothing happening and the use case not working as expected :-). -- Thanks, Maxim