From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 QBtrEYcFBGLoGwAAgWs5BA (envelope-from ) for ; Wed, 09 Feb 2022 19:18:47 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WLRODocFBGKZpgAAauVa8A (envelope-from ) for ; Wed, 09 Feb 2022 19:18:47 +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 D697234CC6 for ; Wed, 9 Feb 2022 19:18:46 +0100 (CET) Received: from localhost ([::1]:35452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHrYD-0004wC-I3 for larch@yhetil.org; Wed, 09 Feb 2022 13:18:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHrXW-0004sO-L7 for bug-guix@gnu.org; Wed, 09 Feb 2022 13:18:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58695) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHrXW-0007vK-BP for bug-guix@gnu.org; Wed, 09 Feb 2022 13:18:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nHrXW-0003Sy-3H for bug-guix@gnu.org; Wed, 09 Feb 2022 13:18:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#53886: guix home not respecting guix pull -C Resent-From: Zacchaeus Scheffer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 09 Feb 2022 18:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53886 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Josselin Poiret Received: via spool by 53886-submit@debbugs.gnu.org id=B53886.164443066313295 (code B ref 53886); Wed, 09 Feb 2022 18:18:02 +0000 Received: (at 53886) by debbugs.gnu.org; 9 Feb 2022 18:17:43 +0000 Received: from localhost ([127.0.0.1]:52592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHrXC-0003SN-N1 for submit@debbugs.gnu.org; Wed, 09 Feb 2022 13:17:42 -0500 Received: from mail-ed1-f53.google.com ([209.85.208.53]:44906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHrXA-0003S9-TR for 53886@debbugs.gnu.org; Wed, 09 Feb 2022 13:17:41 -0500 Received: by mail-ed1-f53.google.com with SMTP id bx2so6839129edb.11 for <53886@debbugs.gnu.org>; Wed, 09 Feb 2022 10:17:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QejW49/w/Tkhx+XQR7AiE1HN0C+xwc/5bZyZNP4PD14=; b=ojt83xstWHBQPYn8EIyxGpCG/Gc6BUk7O65Qr0Fkm1Ga8LmYqnOadoWumnu7759pWT JAjdO/DDHScx1S99qD4agMP5M2xeFan1mzlBOw3AYwQHsarn++vi2OL9jPGpb1N8qN1P 2qvuLkc8AEVBcwYpXvXzyOj4FjcDdXF0OjtHEeJODDveNxmG424BgscBAeZSJb8QjSrZ OuZ0OMdAiu9/RETEnZNOQpdMJoRYoF8xNEwtmdKZi+av0+ddrOLL0gZhgsC17Q9mlMJs jpFik3dquzjLwKyfaw3rpmUJ7F1zhaiqaiMQncoEEtLo9GaSd4wCHHOvDQgXIkzPc1d4 uesA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QejW49/w/Tkhx+XQR7AiE1HN0C+xwc/5bZyZNP4PD14=; b=UmAm3n01FEYU2nc3DEWGKbtSVxIVi0srPwdpBaAAEO+xxnjGreOGRlK5rWPC0IgVOE BnT+/e8BY5sJs4cXabn5AScXAFJyTHotfC3y3Keaoco3O2Jb5mdA/nHSF/WJs/do4cRl DzDX40RcqM1ooqD5msA8hxEObg4eQ51LgLWpSzh8m6Rr3Iy4en5qv/lC/ERD2YLuTSA+ kAYrb/grdpkHAgTkgUySlsRZUlZ3nUdaemTYEJ+C78DsCpIm2z22go3cpAwoQronyWVE qHGeepi6rzlBrsIUTXCoKRpfNXfWHelLSjkBRbdzn5K0P4FBhbe6daPuZcWvyLoGPBDj z0pg== X-Gm-Message-State: AOAM5330VYHHs1xM9Oz/rOoBXreYjfYkXqU8cM2W6u8yFnKq7/ur4fem L0RCnGrorcv4JtatJiFdI7ap91EY4FX2A191Y9E= X-Google-Smtp-Source: ABdhPJyW0i16p0S6STxkECFK43oEUd+Nbp7hQCnXKRIWcK6sZrnwcGmNn6pq/kxgSBkRbOTIWWGlzIEnsLuFm5auL6k= X-Received: by 2002:a50:8e12:: with SMTP id 18mr3920752edw.433.1644430654705; Wed, 09 Feb 2022 10:17:34 -0800 (PST) MIME-Version: 1.0 References: <87wni4mmmf.fsf@jpoiret.xyz> In-Reply-To: <87wni4mmmf.fsf@jpoiret.xyz> From: Zacchaeus Scheffer Date: Wed, 9 Feb 2022 13:17:23 -0500 Message-ID: Content-Type: multipart/alternative; boundary="00000000000008140a05d799d9e8" 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: List-Help: List-Subscribe: , Cc: 53886@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644430727; 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-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=QejW49/w/Tkhx+XQR7AiE1HN0C+xwc/5bZyZNP4PD14=; b=r1dTPYzXopdpxOQ4ON8B2ZKEcqXYsqxIfxK6NDClzPHG3h08y09DE9mzmbV5M/mYRuo0al k9+/Af2PWwyDm20qllYO8FTbbXw1/H+d7Ie/4CRoSKzrO2TgBZj16LXUz9xVTN5Kk8K5qS yBWbhPOrsZvVtZXVQgTl9SJJ+2bjSzNjUm7BFR7YSBKhIYv61DmPLgOXiqreauQYmajm+T LEA0csq52PiA2ea1/XRF9oLER9BOiipUJcPkZOBrMUnDsFGCqFgsrPrubCc1yebYrvPQFl a5fsyP2knCP2qvlenMcPFDSnlo/DiHBq8+yEO2syG9JqAoPalT1GYtk2S84Drw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644430727; a=rsa-sha256; cv=none; b=grb/2zexJK5CXMtq2yh66uBf2QbN9zLvisCP6B4Uf9TquVTKrSPjcaNnxlHPyBM24xyGUc Mh1o718QUV06gA/aznuXLrv1DTyg12/eCHYVMYsH4iVS7kls39t8uv3OqbfpiCln3U9KqG 1aYRBV3DXUSBeA/Za83y0o+3McMIATXrDKlPw2hgsMxPmZ52fQ0wGy0C3TNbL1RP9ohW64 pAcvFuiqJIUUXi0+YegNtvecy5paPK2TtsbG1sLntluMeMjJoVAwYajYeugyLT6rEkg1MC /zNHfrTbkK4Oe3iOZzowTYQhqRepeUO8wX2X1Ai7v7rnOjgkiJjIbnCTDPZmzg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ojt83xst; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Spam-Score: -3.03 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ojt83xst; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Queue-Id: D697234CC6 X-Spam-Score: -3.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0Mxx1w51K/Dt --00000000000008140a05d799d9e8 Content-Type: text/plain; charset="UTF-8" > > I believe that's the main misunderstanding here, `guix home` acts like > `guix system`: it creates home generations, inside which there is a > profile. That profile is _not_ ~/.guix-profile, but rather > ~/.guix-home/profile. They are disjoint and not operated on by the same > commands, guix home will not touch ~/.guix-profile. If you configure > your shell environment variables with guix home alone, I believe only > the the guix home profile is available by default. > I think I tracked down the problem. In my home-zsh-service, I added the contents of my previous .zprofile to to my new .zprofile, including "source /etc/profile", so my .zprofile (with autogenerated lines) looked like: source /etc/profile source ~/.profile source /etc/profile Basically, /etc/profile stripped from my PATH the ~/.guix-home/profile which was added by ~/.profile I think this solves the original problem, but I don't like that ~/.guix-profile/ AND ~/.guix-home/profile are added to your path by default. I admit this is probably a "sane default" for most users, but I care a lot about reproducibility. Though I think there should be a better solution, for now I am going to have guix home run "guix package -m" with an empty manifest on reconfigure. Thanks all for your help, Zacchaeus --00000000000008140a05d799d9e8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I believe that's the main misunderstanding here, `gu= ix home` acts like
`guix system`: it creates home generations, inside which there is a
profile.=C2=A0 That profile is _not_ ~/.guix-profile, but rather
~/.guix-home/profile.=C2=A0 They are disjoint and not operated on by the sa= me
commands, guix home will not touch ~/.guix-profile.=C2=A0 If you configure<= br> your shell environment variables with guix home alone, I believe only
the the guix home profile is available by default.
I think I tracked down the problem.=C2=A0 In my home-zsh-servic= e, I added the contents of my previous .zprofile to to my new .zprofile, in= cluding "source /etc/profile", so my .zprofile (with autogenerate= d lines) looked like:
source /etc/profile
source ~/.pro= file
source /etc/profile
Basically, /etc/profile stripp= ed from my PATH the ~/.guix-home/profile which was added by ~/.profile

I think this solves the original problem, but I don= 9;t like that ~/.guix-profile/ AND ~/.guix-home/profile are added to your p= ath by default.=C2=A0 I admit this is probably a "sane default" f= or most users, but I care a lot about reproducibility.=C2=A0 Though I think= there should be a better solution, for now I am going to have guix home ru= n "guix package -m" with an empty manifest on reconfigure.
<= div>
Thanks all for your help,
Zacchaeus
--00000000000008140a05d799d9e8--