From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id lPeUEbl+vmVK2gAA62LTzQ:P1 (envelope-from ) for ; Sat, 03 Feb 2024 18:58:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id lPeUEbl+vmVK2gAA62LTzQ (envelope-from ) for ; Sat, 03 Feb 2024 18:58:17 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706983097; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=lmm2C7w0NRVM+WA0wIXl+hRgVNV84QU6WV/xsmI+5sA=; b=j8XMdJjCS2Gn4H+IG3ul+Lfg//EpVK72ldjHdnLnhDQp1UphaFCXSKBU9QwdAoN1nj+in4 lnsvhXMyOm+VCMT9EI/QjmfPSIcWh9Ax6St6paGmDFmN7ckSkK0tSZoOoNXZREIYjMNimk TKhmxwR1EZzV69OWmOyEHhTh6FIT5Mi9tBHomJXJU5hNFRnoTBMPeGbxCZaGG8OZn4/RWs BFnyYkHD5WIx9vUxYPrmrJwkpxxyFcfmMXW8EJ9KOxqwKwQRZtmIQ1VPSUeam/XIztK0y/ uYRO826jl0HFMmtfIdbo/QhRbJ4R3ywcLB4FHn2+54Ah8HEoP2+PYfRuS/KUPA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706983097; a=rsa-sha256; cv=none; b=alpgT7HX3XS9Ch4DmiBRYClg3u6JR1TDtgJ1u+kIx5DWb1FBrYQ4E5vuHIGpNPpnrm8g9e z2m99HmLy0SXftEdBzsnA7J99b7XaxqQY9JOGhIotDKLDBRNqD32vMwzE0UnjpXkTQSfAx UhOmjBcnuR7n5PRugN0xVLv9OguTBJ+DmgMHJEkPPZL39qOkIhqn4+d9V5E5oaIjxJGQrR 2kJo5b8h8P6uxzaTQ+9S6x7pB8b+Y8Mt8W0TwQN/Yi7xhyOXP2K0PMDC7MHkNEdXtd6Wo/ d7VDgVlhWj+0hynEOHi5/QgKURwZ2n9ylucY1csMIX1i5Cx/TQofYlgSkeoo4w== 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 27FCA36E12 for ; Sat, 3 Feb 2024 18:58:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rWKH2-0005iU-PO; Sat, 03 Feb 2024 12:57:52 -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 1rWKH1-0005iE-1L for bug-guix@gnu.org; Sat, 03 Feb 2024 12:57:51 -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 1rWKH0-0002zz-PV for bug-guix@gnu.org; Sat, 03 Feb 2024 12:57:50 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rWKHC-0001NW-0z for bug-guix@gnu.org; Sat, 03 Feb 2024 12:58:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#68912: Guix-home search paths shadow .config/guix/current Resent-From: Christina O'Donnell Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 03 Feb 2024 17:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68912 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 68912@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17069830575262 (code B ref -1); Sat, 03 Feb 2024 17:58:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Feb 2024 17:57:37 +0000 Received: from localhost ([127.0.0.1]:47026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWKGm-0001Ml-9w for submit@debbugs.gnu.org; Sat, 03 Feb 2024 12:57:37 -0500 Received: from lists.gnu.org ([2001:470:142::17]:43690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWFp5-00052r-Kb for submit@debbugs.gnu.org; Sat, 03 Feb 2024 08:12:44 -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 1rWFoo-0007M7-EQ for bug-guix@gnu.org; Sat, 03 Feb 2024 08:12:26 -0500 Received: from vmi993448.contaboserver.net ([194.163.141.236] helo=mutix.org) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rWFom-0004bD-Dj for bug-guix@gnu.org; Sat, 03 Feb 2024 08:12:26 -0500 Received: from [192.168.1.172] (host86-132-246-87.range86-132.btcentralplus.com [86.132.246.87]) (Authenticated sender: cdo) by mutix.org (Postfix) with ESMTPSA id EE6C8A63622 for ; Sat, 3 Feb 2024 14:12:15 +0100 (CET) Message-ID: <7cd7e463-dfe5-4810-dc17-d1175e4696c3@mutix.org> Date: Sat, 3 Feb 2024 13:12:14 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Content-Language: en-US From: Christina O'Donnell Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=194.163.141.236; envelope-from=cdo@mutix.org; helo=mutix.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 03 Feb 2024 12:57:35 -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: -6.67 X-Spam-Score: -6.67 X-Migadu-Queue-Id: 27FCA36E12 X-Migadu-Scanner: mx12.migadu.com X-TUID: g3RJNbJuG7Pr Hi, On my machine the order of search paths are: $ echo $PATH | tr : '\n' /home/cdo/.guix-home/profile/bin /home/cdo/.guix-home/profile/sbin /run/setuid-programs /home/cdo/.config/guix/current/bin /home/cdo/.guix-profile/bin /run/current-system/profile/bin /run/current-system/profile/sbin /gnu/store/gjsxzcc0gqpz4lpbsrbidlnn5ij1lfm1-gzip-1.12/bin /gnu/store/z81jl0pb4ppkci4im6n856dkhi2ki2d3-coreutils-9.1/bin This leads to unexpected results if you have Guix inside your home package list. (Which you might desire if you wanted to use Guix in a home container.) The Guix you interact with stays stuck on the version that you had when you first `guix home reconfigured` a configuration with guix as a package. Then `guix pull` appears to succeed but `guix describe` is still stuck at the original version. And even a `guix home reconfigure` doesn't update the version because it's using the `guix` from the original `guix home reconfigure`. The way out of this situation is to use `~/.config/guix/current/bin/guix` directly, setting $PATH manually, or simply removing `guix` from your home package list. However, the situation is preventable and undesirable and there's several possible solutions:  1. Reorder the paths by default, keeping ~/.config/guix in front of ~/.guix-home  2. Have `guix home` warn when 'guix' is included as a package  3. Have `guix pull` warn when Guix is shadowed and unable to be updated My preference would be at least 1 and 3. (Incidentally, how did gzip and coreutils get in there? I didn't put it there.) I'm happy to contribute a patch if others agree that it's worth fixing. Excited to contribute more!  - Christina ---------------- Supplementary output: $ guix describe   guix aeb4943     repository URL: https://git.savannah.gnu.org/git/guix.git     branch: master     commit: aeb494322ca9dec4a4d66a7d063239c8536bd538 $ guix pull Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'... Updating channel 'nonguix' from Git repository at 'https://gitlab.com/nonguix/nonguix'... Building from these channels:   guix      https://git.savannah.gnu.org/git/guix.git    9389070   nonguix   https://gitlab.com/nonguix/nonguix    fe2fcf1 Computing Guix derivation for 'x86_64-linux'... \ nothing to be done hint: After setting `PATH', run `hash guix' to make sure your shell refers to `/home/cdo/.config/guix/current/bin/guix'. $ hash guix $ which guix /home/cdo/.guix-home/profile/bin/guix $ guix describe   guix aeb4943     repository URL: https://git.savannah.gnu.org/git/guix.git     branch: master     commit: aeb494322ca9dec4a4d66a7d063239c8536bd538