From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mLu3EkgA+GEIcQAAgWs5BA (envelope-from ) for ; Mon, 31 Jan 2022 16:29:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6KkrEEgA+GGfVwAA9RJhRA (envelope-from ) for ; Mon, 31 Jan 2022 16:29:12 +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 E6B1543B23 for ; Mon, 31 Jan 2022 16:29:11 +0100 (CET) Received: from localhost ([::1]:37576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nEYcA-0006S2-R8 for larch@yhetil.org; Mon, 31 Jan 2022 10:29:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEXUM-000883-JJ for bug-guix@gnu.org; Mon, 31 Jan 2022 09:17:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45776) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nEXUM-00011M-8Y for bug-guix@gnu.org; Mon, 31 Jan 2022 09:17:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nEXUL-0004OA-V1 for bug-guix@gnu.org; Mon, 31 Jan 2022 09:17:01 -0500 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-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" 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=1643642951; 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:dkim-signature; bh=Rs4WQkEBHnw6IEG+q8cNbwcaWZCuVPeQ51/fTLJ3Xo8=; b=q3/Tu/Pz7NK2mit3S9w8wn1Aqctr/LaL9jIYDUooAtX5UCSXm91w1O5SB2A+bWm4E9OeUN B2DYzDn4yld998YMdZdNdTDD/GJf0NYob82RwE3aHeFLlLlb6p7agkDbXu/qaBbwHq2fg1 76lmpHcCRpqyNOkgtQx5zfCUavnvgppXJYAITfHTNXpbNR3ph7BXqx+sM+mzOONW2Uxs+2 DYdDplvZ7NJOhSJb0oTjQ1aIhc9QyaHIndT3UogJrOlgU8/9v+4vDe/+HsvVkrp2VID3JJ tBR/m/BS+vESmEKlPS5xx0NSEkDGTbWEku2OPpvHeu9G1W2MPMDRl9uLnusWrQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643642951; a=rsa-sha256; cv=none; b=AleOQatI3wdPv4hIhHwMIexmi165P+ZfPC4twLYlrK/tqjr+QyYuC7Q85pKHVfZRNZZNZ3 fUTHboH1+TjRYYc29DjtNgs0WFJD1JlLRdD0NZ+UYqDgHpMSlP8WyzodD9W+Wm0GVj81SM 4LyCqCrExpzDRwHJt+lYh6uPXPcc4TngI2Hm1DU3sA+OyaAZOeCAwuRuehYnpwQE3WtS72 IBseAHttJxuSy7t0TrA6QA44rdRD8Vl/CrkUmMT9plfTAFzlm7pa4530IEb3sEkyH4Xc2u Or2b5c8EiTVHVDagQkFSVyIHhmtsRqrNZ0Z+xukXSUceuvVAJtJK+FOW11BE/Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=nuh5fhF6; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (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: -1.93 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=nuh5fhF6; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (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: E6B1543B23 X-Spam-Score: -1.93 X-Migadu-Scanner: scn1.migadu.com X-TUID: KXPeOle+5K3P 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---