From unknown Sun Jun 22 11:41:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53658: guix shell cache not working properly Resent-From: Guillaume Le Vaillant Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 31 Jan 2022 14:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53658 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 53658@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164363859516819 (code B ref -1); Mon, 31 Jan 2022 14:17:01 +0000 Received: (at submit) by debbugs.gnu.org; 31 Jan 2022 14:16:35 +0000 Received: from localhost ([127.0.0.1]:38679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEXTs-0004NA-5C for submit@debbugs.gnu.org; Mon, 31 Jan 2022 09:16:35 -0500 Received: from lists.gnu.org ([209.51.188.17]:48258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEXTq-0004N1-TV for submit@debbugs.gnu.org; Mon, 31 Jan 2022 09:16:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEXTp-0006th-Sh for bug-guix@gnu.org; Mon, 31 Jan 2022 09:16:30 -0500 Received: from mout01.posteo.de ([185.67.36.65]:59971) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEXTg-0000nM-D6 for bug-guix@gnu.org; Mon, 31 Jan 2022 09:16:29 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 9348B240026 for ; Mon, 31 Jan 2022 15:15:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1643638539; bh=/tsPEGUiInkozkPcqu6+iGrXI5Qyy3yU8QLBZNbmQTE=; h=From:To:Subject:Date:From; b=nuh5fhF6bWrkS1tJZv7qqY5NYQO1xQNb46KzAqnaqV9k3DkmkWyszup9enSKK+bK0 LawL+JGRkUMLvibgcv4ubHQ31j4ulnZDDh3HkTXhICjW+RLw2hTp+KGtrKzyKoC4ti aInUWG+KOj2+RQ0w1Q2Dfu6IahCcKxgTG7DS1+uHLgnfFuQOmIoGdzaA45AK6xrmAw mDwG3Ax4kH3xLWswPKQfs1QbtqFqS3qe8RP/Y8NV8JpBXPIpCJpnQoH5aJmvvUhikm yEh3OvLMtubRVHFVGTWaQxNFcpB5SUyQduKBC966IELAW6EC/jH3UPqm0hsG4fCXtm g36rCCHpdLt9Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JnVTQ6v6Yz6tmG for ; Mon, 31 Jan 2022 15:15:38 +0100 (CET) From: Guillaume Le Vaillant Date: Mon, 31 Jan 2022 13:34:11 +0000 Message-ID: <87zgnc56ut.fsf@kitej> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=glv@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi, With Guix at e217174b7b9046658ac3474d522bde192e9cffb4I have an issue with the "guix shell -p ..." command, where I end up in a environment for a profile I used previously instead of the profile specified in the command line. I can reproduce the issue this way: --8<---------------cut here---------------start------------->8--- # Clear the profile cache rm ${HOME}/.cache/guix/profiles/* # Make some profiles mkdir a echo "(specifications->manifest '(\"gforth\"))" > a/manifest.scm guix package -m a/manifest.scm -p a/profile mkdir b echo "(specifications->manifest '(\"smalltalk\"))" > b/manifest.scm guix package -m b/manifest.scm -p b/profile # The first attempt at using a profile when the cache is empty fails guix shell -q -p a/profile -- gforth > Backtrace: > 10 (primitive-load "/home/guillaume/.config/guix/current/b=E2= =80=A6") > In guix/ui.scm: > 2209:7 9 (run-guix . _) > 2172:10 8 (run-guix-command _ . _) > In ice-9/boot-9.scm: > 1752:10 7 (with-exception-handler _ _ #:unwind? _ # _) > In guix/status.scm: > 802:4 6 (call-with-status-report _ _) > In guix/scripts/environment.scm: > 951:12 5 (_) > In guix/store.scm: > 2123:24 4 (run-with-store #f # =E2=80=A6) > In guix/scripts/environment.scm: > 968:16 3 (_ _) > In guix/store.scm: > 1995:38 2 (_ #f) > 1473:0 1 (add-indirect-root #f "/home/guillaume/.cache/guix/prof=E2= =80=A6") > In ice-9/boot-9.scm: > 1685:16 0 (raise-exception _ #:continuable? _) >=20 > ice-9/boot-9.scm:1685:16: In procedure raise-exception: > In procedure struct-vtable: Wrong type argument in position 1 (expecting = struct): #f # Then using the first profile with the same command works guix shell -q -p a/profile -- gforth > Gforth 0.7.3, Copyright (C) 1995-2008 Free Software Foundation, Inc. > Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license' > Type `bye' to exit bye # Using the second profile doesn't work guix shell -q -p b/profile -- gst > guix shell: erreur : gst : commande introuvable > conseil : Vouliez-vous dire =C2=AB gforth =C2=BB ? # But the second profile really has the gst program ls b/profile/bin > gst gst-blox gst-browser gst-config gst-convert [...] # In fact, using the second profile creates an environment for # the first profile guix shell -q -p b/profile -- gforth > Gforth 0.7.3, Copyright (C) 1995-2008 Free Software Foundation, Inc. > Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license' > Type `bye' to exit bye # And the profile cache only contains a link for the first profile instead # of links for both profiles ls ${HOME}/.cache/guix/profiles/ > hw7txclxu45xzbt4orha5d6zrgjej5ps4ve5n6je3cnblbg7fz2a > last-expiry-cleanup ls hw7txclxu45xzbt4orha5d6zrgjej5ps4ve5n6je3cnblbg7fz2a/bin > gforth gforth-0.7.3 gforth-fast gforth-fast-0.7.3 [...] --8<---------------cut here---------------end--------------->8--- From unknown Sun Jun 22 11:41:12 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Guillaume Le Vaillant Subject: bug#53658: closed (Re: bug#53658: guix shell cache not working properly) Message-ID: References: <87tucgyzpn.fsf@gnu.org> <87zgnc56ut.fsf@kitej> X-Gnu-PR-Message: they-closed 53658 X-Gnu-PR-Package: guix Reply-To: 53658@debbugs.gnu.org Date: Wed, 02 Mar 2022 18:31:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1646245862-8716-1" This is a multi-part message in MIME format... ------------=_1646245862-8716-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #53658: guix shell cache not working properly which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 53658@debbugs.gnu.org. --=20 53658: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D53658 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1646245862-8716-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 53658-done) by debbugs.gnu.org; 2 Mar 2022 18:30:22 +0000 Received: from localhost ([127.0.0.1]:40736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nPTjy-0002F9-7W for submit@debbugs.gnu.org; Wed, 02 Mar 2022 13:30:22 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:40362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nPTjv-0002En-Kx for 53658-done@debbugs.gnu.org; Wed, 02 Mar 2022 13:30:20 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 23D1EBD3; Wed, 2 Mar 2022 19:30:14 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IeqeqZxA1vbi; Wed, 2 Mar 2022 19:30:13 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 1B3B3264; Wed, 2 Mar 2022 19:30:13 +0100 (CET) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Guillaume Le Vaillant Subject: Re: bug#53658: guix shell cache not working properly References: <87zgnc56ut.fsf@kitej> Date: Wed, 02 Mar 2022 19:30:12 +0100 In-Reply-To: <87zgnc56ut.fsf@kitej> (Guillaume Le Vaillant's message of "Mon, 31 Jan 2022 13:34:11 +0000") Message-ID: <87tucgyzpn.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / Authentication-Results: hera.aquilenet.fr; none X-Rspamd-Server: hera X-Rspamd-Queue-Id: 23D1EBD3 X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 53658-done Cc: 53658-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi Guillaume, Guillaume Le Vaillant skribis: > # Clear the profile cache > rm ${HOME}/.cache/guix/profiles/* > > # Make some profiles > mkdir a > echo "(specifications->manifest '(\"gforth\"))" > a/manifest.scm > guix package -m a/manifest.scm -p a/profile > mkdir b > echo "(specifications->manifest '(\"smalltalk\"))" > b/manifest.scm > guix package -m b/manifest.scm -p b/profile > > # The first attempt at using a profile when the cache is empty fails > guix shell -q -p a/profile -- gforth >> Backtrace: >> 10 (primitive-load "/home/guillaume/.config/guix/current/b=E2= =80=A6") >> In guix/ui.scm: >> 2209:7 9 (run-guix . _) >> 2172:10 8 (run-guix-command _ . _) >> In ice-9/boot-9.scm: >> 1752:10 7 (with-exception-handler _ _ #:unwind? _ # _) >> In guix/status.scm: >> 802:4 6 (call-with-status-report _ _) >> In guix/scripts/environment.scm: >> 951:12 5 (_) >> In guix/store.scm: >> 2123:24 4 (run-with-store #f # =E2=80=A6) >> In guix/scripts/environment.scm: >> 968:16 3 (_ _) >> In guix/store.scm: >> 1995:38 2 (_ #f) >> 1473:0 1 (add-indirect-root #f "/home/guillaume/.cache/guix/prof=E2= =80=A6") >> In ice-9/boot-9.scm: >> 1685:16 0 (raise-exception _ #:continuable? _) >>=20 >> ice-9/boot-9.scm:1685:16: In procedure raise-exception: >> In procedure struct-vtable: Wrong type argument in position 1 (expecting= struct): #f > > # Then using the first profile with the same command works > guix shell -q -p a/profile -- gforth >> Gforth 0.7.3, Copyright (C) 1995-2008 Free Software Foundation, Inc. >> Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license' >> Type `bye' to exit > bye > > # Using the second profile doesn't work > guix shell -q -p b/profile -- gst >> guix shell: erreur : gst : commande introuvable >> conseil : Vouliez-vous dire =C2=AB gforth =C2=BB ? > > # But the second profile really has the gst program > ls b/profile/bin >> gst gst-blox gst-browser gst-config gst-convert [...] > > # In fact, using the second profile creates an environment for > # the first profile > guix shell -q -p b/profile -- gforth >> Gforth 0.7.3, Copyright (C) 1995-2008 Free Software Foundation, Inc. >> Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license' >> Type `bye' to exit > bye Fixed in ee6275c9744f8649bccc8cfa7c52d100044d7570, thanks! Ludo=E2=80=99. ------------=_1646245862-8716-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 31 Jan 2022 14:16:35 +0000 Received: from localhost ([127.0.0.1]:38679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEXTs-0004NA-5C for submit@debbugs.gnu.org; Mon, 31 Jan 2022 09:16:35 -0500 Received: from lists.gnu.org ([209.51.188.17]:48258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEXTq-0004N1-TV for submit@debbugs.gnu.org; Mon, 31 Jan 2022 09:16:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEXTp-0006th-Sh for bug-guix@gnu.org; Mon, 31 Jan 2022 09:16:30 -0500 Received: from mout01.posteo.de ([185.67.36.65]:59971) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEXTg-0000nM-D6 for bug-guix@gnu.org; Mon, 31 Jan 2022 09:16:29 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 9348B240026 for ; Mon, 31 Jan 2022 15:15:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1643638539; bh=/tsPEGUiInkozkPcqu6+iGrXI5Qyy3yU8QLBZNbmQTE=; h=From:To:Subject:Date:From; b=nuh5fhF6bWrkS1tJZv7qqY5NYQO1xQNb46KzAqnaqV9k3DkmkWyszup9enSKK+bK0 LawL+JGRkUMLvibgcv4ubHQ31j4ulnZDDh3HkTXhICjW+RLw2hTp+KGtrKzyKoC4ti aInUWG+KOj2+RQ0w1Q2Dfu6IahCcKxgTG7DS1+uHLgnfFuQOmIoGdzaA45AK6xrmAw mDwG3Ax4kH3xLWswPKQfs1QbtqFqS3qe8RP/Y8NV8JpBXPIpCJpnQoH5aJmvvUhikm yEh3OvLMtubRVHFVGTWaQxNFcpB5SUyQduKBC966IELAW6EC/jH3UPqm0hsG4fCXtm g36rCCHpdLt9Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JnVTQ6v6Yz6tmG for ; Mon, 31 Jan 2022 15:15:38 +0100 (CET) From: Guillaume Le Vaillant To: bug-guix@gnu.org Subject: guix shell cache not working properly Date: Mon, 31 Jan 2022 13:34:11 +0000 Message-ID: <87zgnc56ut.fsf@kitej> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=glv@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi, With Guix at e217174b7b9046658ac3474d522bde192e9cffb4I have an issue with the "guix shell -p ..." command, where I end up in a environment for a profile I used previously instead of the profile specified in the command line. I can reproduce the issue this way: --8<---------------cut here---------------start------------->8--- # Clear the profile cache rm ${HOME}/.cache/guix/profiles/* # Make some profiles mkdir a echo "(specifications->manifest '(\"gforth\"))" > a/manifest.scm guix package -m a/manifest.scm -p a/profile mkdir b echo "(specifications->manifest '(\"smalltalk\"))" > b/manifest.scm guix package -m b/manifest.scm -p b/profile # The first attempt at using a profile when the cache is empty fails guix shell -q -p a/profile -- gforth > Backtrace: > 10 (primitive-load "/home/guillaume/.config/guix/current/b=E2= =80=A6") > In guix/ui.scm: > 2209:7 9 (run-guix . _) > 2172:10 8 (run-guix-command _ . _) > In ice-9/boot-9.scm: > 1752:10 7 (with-exception-handler _ _ #:unwind? _ # _) > In guix/status.scm: > 802:4 6 (call-with-status-report _ _) > In guix/scripts/environment.scm: > 951:12 5 (_) > In guix/store.scm: > 2123:24 4 (run-with-store #f # =E2=80=A6) > In guix/scripts/environment.scm: > 968:16 3 (_ _) > In guix/store.scm: > 1995:38 2 (_ #f) > 1473:0 1 (add-indirect-root #f "/home/guillaume/.cache/guix/prof=E2= =80=A6") > In ice-9/boot-9.scm: > 1685:16 0 (raise-exception _ #:continuable? _) >=20 > ice-9/boot-9.scm:1685:16: In procedure raise-exception: > In procedure struct-vtable: Wrong type argument in position 1 (expecting = struct): #f # Then using the first profile with the same command works guix shell -q -p a/profile -- gforth > Gforth 0.7.3, Copyright (C) 1995-2008 Free Software Foundation, Inc. > Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license' > Type `bye' to exit bye # Using the second profile doesn't work guix shell -q -p b/profile -- gst > guix shell: erreur : gst : commande introuvable > conseil : Vouliez-vous dire =C2=AB gforth =C2=BB ? # But the second profile really has the gst program ls b/profile/bin > gst gst-blox gst-browser gst-config gst-convert [...] # In fact, using the second profile creates an environment for # the first profile guix shell -q -p b/profile -- gforth > Gforth 0.7.3, Copyright (C) 1995-2008 Free Software Foundation, Inc. > Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license' > Type `bye' to exit bye # And the profile cache only contains a link for the first profile instead # of links for both profiles ls ${HOME}/.cache/guix/profiles/ > hw7txclxu45xzbt4orha5d6zrgjej5ps4ve5n6je3cnblbg7fz2a > last-expiry-cleanup ls hw7txclxu45xzbt4orha5d6zrgjej5ps4ve5n6je3cnblbg7fz2a/bin > gforth gforth-0.7.3 gforth-fast gforth-fast-0.7.3 [...] --8<---------------cut here---------------end--------------->8--- ------------=_1646245862-8716-1--