From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id +PKFB6zLxGXOOQEA62LTzQ:P1 (envelope-from ) for ; Thu, 08 Feb 2024 13:40:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id +PKFB6zLxGXOOQEA62LTzQ (envelope-from ) for ; Thu, 08 Feb 2024 13:40:12 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=HvPimQad; 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=student.tugraz.at (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707396012; 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: content-transfer-encoding:content-transfer-encoding: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=D85fkTxMn7uvrK9X0xADGFjO08KMbLj7NpLcI60udyQ=; b=VNMuIqetGpGqqfLoxg9/WBu5xC15cM3jG9JX/Db8iuHvYgu2k3EjxhFlIc83wRZFxdUtJs sX1IsZv3OgvYc1whQFHcW1w5SrpA1Nvts6V2F4sfakySMfjNyBHUlfCXVpRrjNGXbCnM0S ow32N3Z2x2P1HqWLwTWuCHheE84gI5GyGMWjg6/xX/80fvkKaLWIq15bQPZ7Rvjgg/Yhob wy+PLX7GLo+Om/XyJ6aeKUxyysp2D+1wygz+BB25tUBXUfCxnGITC9t9GHm1k3Vti19UN2 cFi5XuW2t5/lK2XwKn8YKem4Yyk1MshyAaa0DZaVCQPHDJAZW264Ik34czZ1NQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=HvPimQad; 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=student.tugraz.at (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707396012; a=rsa-sha256; cv=none; b=hNDIVdeK8pgMg3XGxw4e34B8w1CxSVen3DjbVTNCTfZ/pKmw7KKKOIOO8AQrUA8VoGjLAI aIZilyiORSmNM+tdm6Ght6Vh6MUlTlwcF0VVCR/yJ3rh1PlHjI895Zyxc4QLjT2zjCm4XM 6k+DRKOoCaXaJVOqCgc70eBWr/vgDdvGeYhCMLy8hVKITwdlBLSpGSWtQ1K6H1c078K3Mp WTssfsUNCXYkz+niM+EHGj8r76BYSaboICSREtLm3V9MjxV6vyGKoM2DzLDffZC9SUjD7H TAgNCfwnOyV9Vq40F0DAo99SsNFK3Ku7qTkIoRROUwmUspdC67kPqxTjMb/8lw== 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 EE9651405E for ; Thu, 8 Feb 2024 13:40:11 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rY3h0-00088d-O1; Thu, 08 Feb 2024 07:39:50 -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 1rY3gx-00088M-Fn for bug-guix@gnu.org; Thu, 08 Feb 2024 07:39:47 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rY3gx-0001DZ-7V for bug-guix@gnu.org; Thu, 08 Feb 2024 07:39:47 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rY3hB-0006Jd-Iu for bug-guix@gnu.org; Thu, 08 Feb 2024 07:40:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#68912: Guix-home search paths shadow .config/guix/current Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 08 Feb 2024 12:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68912 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Christina O'Donnell , 68912@debbugs.gnu.org Received: via spool by 68912-submit@debbugs.gnu.org id=B68912.170739599124254 (code B ref 68912); Thu, 08 Feb 2024 12:40:01 +0000 Received: (at 68912) by debbugs.gnu.org; 8 Feb 2024 12:39:51 +0000 Received: from localhost ([127.0.0.1]:59317 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rY3h1-0006J3-1E for submit@debbugs.gnu.org; Thu, 08 Feb 2024 07:39:51 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:44321) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rY0Nr-0005TC-R0 for 68912@debbugs.gnu.org; Thu, 08 Feb 2024 04:07:54 -0500 Received: from kagayaki.local (unknown [185.197.47.246]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4TVrjG22nFz3wnR; Thu, 8 Feb 2024 10:07:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1707383250; bh=D85fkTxMn7uvrK9X0xADGFjO08KMbLj7NpLcI60udyQ=; h=Subject:From:To:Date:In-Reply-To:References; b=HvPimQadv9jsvfxbk4NRn/BkGD62PMy0GSSgm/S1+LfQp58cKrLCH/jv0BP+19gvZ 4ULdNy3DjQpx7UcITUgZG6Y/14LEegXNspMW6roY29lQHBEgR5vPCFjmcqMptN3m4T lQDjWBIUUeUd8bVAacP78UcF/IxJBUHRv6rnpEpc= Message-ID: <23c2397e5ac73a5431e16d6fedaf007c5d92f400.camel@student.tugraz.at> From: Liliana Marie Prikler Date: Thu, 08 Feb 2024 10:07:28 +0100 In-Reply-To: <7cd7e463-dfe5-4810-dc17-d1175e4696c3@mutix.org> References: <7cd7e463-dfe5-4810-dc17-d1175e4696c3@mutix.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-Mailman-Approved-At: Thu, 08 Feb 2024 07:39:48 -0500 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: , 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-Migadu-Spam-Score: 2.13 X-Migadu-Scanner: mx13.migadu.com X-Spam-Score: 2.13 X-Migadu-Queue-Id: EE9651405E X-TUID: cxfWtJ8995i0 Am Samstag, dem 03.02.2024 um 13:12 +0000 schrieb Christina O'Donnell: > This leads to unexpected results if you have Guix inside your home=20 > package list. (Which you might desire if you wanted to use Guix in a=20 > home container.) The wisdom "One does not simply 'guix install guix'" has been passed around for ages. Same applies to home configurations, which merely mimic that aspect. There are valid reasons for using Guix in temporary shells (or home containers), but also many pathological uses. > [T]he situation is preventable and undesirable and there's several > possible solutions: >=20 > =C2=A0=C2=A01. Reorder the paths by default, keeping ~/.config/guix in fr= ont of > ~/.guix-home As far as I know, this requires changing the order in which files are sourced, and it's not clearly desirable that ~/.config/guix ought to shadow ~/.guix-home or ~/.guix-profile. In particular, whenever you use `guix shell` or similar, you will shadow that anyway. > =C2=A0=C2=A02. Have `guix home` warn when 'guix' is included as a package This might be fine, but what about the home container use-case then?=20 I'm not sure whether having no guix in containers is preferable over having a slightly outdated one =E2=80=93 at the very least, my personal usa= ge of GWL through `guix shell' is enough reason to keep guix visible as a package. > =C2=A0=C2=A03. Have `guix pull` warn when Guix is shadowed and unable to = be > updated This would (at least in a naive version) print a weird warning on fresh setups, where the not yet created local ~/.config/guix is not yet on PATH. As far as I know, this would be doable, though, if you're smart enough about it. > (Incidentally, how did gzip and coreutils get in there? I didn't put > it there.) These might have been added by the home container for reason unbeknownst to me. > hint: After setting `PATH', run `hash guix' to make sure your shell=20 > refers to `/home/cdo/.config/guix/current/bin/guix'. Hint: this is the warning you're looking for. It's phrased as a hint, because people typically only encounter it once during setup. Cheers