From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ENBnOv2CL2KwZwAAgWs5BA (envelope-from ) for ; Mon, 14 Mar 2022 19:01:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iPvLMv2CL2L1YgAAG6o9tA (envelope-from ) for ; Mon, 14 Mar 2022 19:01:33 +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 73C5241D55 for ; Mon, 14 Mar 2022 19:01:33 +0100 (CET) Received: from localhost ([::1]:49484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nTp0e-0002p4-HS for larch@yhetil.org; Mon, 14 Mar 2022 14:01:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTouN-00075z-OA for guix-patches@gnu.org; Mon, 14 Mar 2022 13:55:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52356) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nTouN-0002Ed-Df for guix-patches@gnu.org; Mon, 14 Mar 2022 13:55:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nTouN-0004kN-Ca for guix-patches@gnu.org; Mon, 14 Mar 2022 13:55:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54375] Mutable guix shell environments Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 14 Mar 2022 17:55:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54375 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Charles , 54375@debbugs.gnu.org Received: via spool by 54375-submit@debbugs.gnu.org id=B54375.164728050218237 (code B ref 54375); Mon, 14 Mar 2022 17:55:03 +0000 Received: (at 54375) by debbugs.gnu.org; 14 Mar 2022 17:55:02 +0000 Received: from localhost ([127.0.0.1]:46252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTouL-0004k2-V1 for submit@debbugs.gnu.org; Mon, 14 Mar 2022 13:55:02 -0400 Received: from baptiste.telenet-ops.be ([195.130.132.51]:44736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTouK-0004jn-1s for 54375@debbugs.gnu.org; Mon, 14 Mar 2022 13:55:00 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by baptiste.telenet-ops.be with bizsmtp id 6Huy270044UW6Th01HuycN; Mon, 14 Mar 2022 18:54:58 +0100 Message-ID: <6aaf3dfaa6c207b2968b756fa86806232227e2be.camel@telenet.be> From: Maxime Devos Date: Mon, 14 Mar 2022 18:54:52 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-/BZ4EHH+u/8o8cgftpno" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1647280498; bh=pf5jHRE+r10gEsHOqoC+KBfEZwthhEwj8DvKODajYV0=; h=Subject:From:To:Date:In-Reply-To:References; b=khwQAHVnhtz/5uCBvnJK6HG2XwZL148/jmJN+fr6UlQhT7Ml2YxsEXOETDAQOp8bf Fm6vlbj5x53jjb6LCZin0WtRrP20PBEpNFDTWmnplRU+Sbf+yQKSSII3FYMoxzJYxk WaSKQ+X+wvUNVQRAswpj3z6p6TsBJz1fehP44fed3cqJEMmR+DurrEXwTMiAI+cmEN leedSjFfJAtv22XuuicDu7H0xwJ67X7+lkxw0Cb9Ns0h7qmARA8G2n3nCxlMfUI7N2 W83GupEDbkadJ8ODgsmEw7mIed4C6gRxklaUUbb3k4IClaBEcquku5oC+3e/pp//tj U5utOouhczKWA== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647280893; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc: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=pf5jHRE+r10gEsHOqoC+KBfEZwthhEwj8DvKODajYV0=; b=PhChsjLOq4zR9TH4Bl/SLmiw0Dv0PKl2OviLsTl/r75pKELNWYfCCpSwvuCKnWzDmV4R5M 7wTC2T2WyfZZpm5VCsZ5UxRzCCLj/BJpNtyKRLqwRJMAjMqn7ZfjDGeu1SA0R//Uvo6Esd B4PvHq4O7a1v//NPF1MQ5bkbIEjWSgVkkUk/mCjYDCV9M/pU4C9MJ0SGS0DLGbK7LnLA7t MqJwBxhVIOcrmObXF0JU7nMvwOLiOwhICQ8APmhzdkbdvfg1MXniEKRq965sLgCzcBzTpM /Sd/9VQ3xKFnEfF1DEJG7fmxTFL7gW73tHYITe16XZBLQgDXgB8Gc0xnSD1e0Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647280893; a=rsa-sha256; cv=none; b=IsiKaWD0B+kcq7mdo5B7Kzh+vZyjcyZg+WLISebSK9R1IAFWG0b52uFaUWDL7GpsXAp+ce 40vD9ea3yq58N0dEbI2BCIKlaL1HwjECt1zOWYIhcIQByBo3KBe3f4tnKF5qHEC+nec7DG sdyqPkTxnquSiKEl2rVse2TaObvS/vy3Xz66ZQwL0qRHdzJYXupUG3AaTHcEBpKiPD+d7N vdxFWp5w3pm3FCER/ybl372KNDPUU6AcN52H8evnfuQPzU0GbDn4gRVZFisQIaep46ymoJ JGHUcZpz1mjG9WsBucFBfIdKpBCxfjXYMSabNfYdrvWHDE6Vp484zID1muGZBg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=khwQAHVn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 3.73 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=khwQAHVn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 73C5241D55 X-Spam-Score: 3.73 X-Migadu-Scanner: scn1.migadu.com X-TUID: dYodJF8d9HPP --=-/BZ4EHH+u/8o8cgftpno Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Charles via Guix-patches via schreef op zo 13-03-2022 om 18:21 [+0000]: > sample useage: > $ cd project > $ guix package --manifest=3Dmanifest.scm --profile=3D.guix-profile > $ guix shell # --profile=3D.guix-profile is implicit Alternative suggestion, which IMHO fits the non-persistent naturre of "guix shell" better: $ cd project $ guix shell --allow-temporary-modifications # fails on read-only file syst= ems $ echo $GUIX_ENVIRONMENT # a temporary (mutable) profile was created > $HOME/.cache/.../profile # install things in the $GUIX_ENVIRONMENT profile $ guix install foo bar ...=20 As noted by lilyp, this won't work in all situations due to search path issues. These could be resolved by always setting a few search paths (PATH, EMACSLOADPATH, GUILE_LOAD_PATH, INFOPATH, ...) (even in not currentl= y present in the profile!), at cost of having to make them =E2=80=98magical= =E2=80=99 in some sense, which ludo does not seem to like IIUC. (This could also be done for ~/.guix-profile) (I don't like it much either, but it seems a very convenient solution that does not seem to have any concrete downsides and IMHO it seems much better than telling the user to re-source the profile.) Greetings, Maxime. --=-/BZ4EHH+u/8o8cgftpno Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYi+BbBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7uDOAQCjicNVh1niTT00xHk+NBo7MyY6 IGiGV+T3+Nu1ov+ZdwD+Lw/9ReUFPNadRiKk98TkqpeXj41ePPHbw3oXJOTa7gM= =vAKG -----END PGP SIGNATURE----- --=-/BZ4EHH+u/8o8cgftpno--