From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id oIZGM7f7MGUa+QAAauVa8A:P1 (envelope-from ) for ; Thu, 19 Oct 2023 11:49:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oIZGM7f7MGUa+QAAauVa8A (envelope-from ) for ; Thu, 19 Oct 2023 11:49:43 +0200 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 6BA3568367 for ; Thu, 19 Oct 2023 11:49:43 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=cAKV6Nb8; 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=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697708983; 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=ykHk1s/ZXOsKh3T+6XIdh50G+NTore5tzgiYo8VfIAc=; b=Ti1K5JyJ9ndwlyPIl5iQw7rRW2aoDjSt42vA5tAp/SBgKBSqZ+Ne54t3jQ/B1r6Sr3hoI9 g7FuLEMpMxss3g7g7tQHVO9v5YZ/4PVO3RyKMcBS+Rw/GTchtqvkdQdml0BLY+BQATsASO 0DjIflB36wQ4hymIKu06YYKGVjBqdqPjCRqwkUwUbjZYDMJ+i5WwjJtcrSFA9hTW37G0A1 G/KWyMn29EsE5xXZW+YmwiT5PVS/U9nKA08t7F5Xg+H2gYkocyHPDxs1XqyitNVppLjrRY X81kre/nhFzkRofc5S6AujSDPuNyi7BfVaW9LTlwleU42Xj5WDwsa/cSbUNbKg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697708983; a=rsa-sha256; cv=none; b=XKbOWXp2V/otVEr+fQss1FmJ4EEukc6J4dtyztxJHGl1wky4FOCmbI0EfV9K0vZRDLSGby tNyz8G9jYflmL3rIg2KQogW/oTavUnvcVOD8MfPDXqPSI/7j+L3VSSNHUdHNJD4qKFKtlz R4TwAJtkqgXh/uK2zp6RF3ular0tBKtsYBhbhFxRM3dKN1pTov2e49KW+MQZWVwuQoytZ+ r/bQwGuUw+jgzVWByKrwthr8Illhsp5/Y7ZUaErlew84LRvY0X8h8jkoTu9gju0K5rfdM9 Wtv3u6mXPMXcclE72mTsQJwg70OCRp13D1Xban7tW8ohUbDst6DdRy4JWKh5Jg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=cAKV6Nb8; 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=gmail.com (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtPet-0000IA-TS; Thu, 19 Oct 2023 05:49:39 -0400 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 1qtPeq-0000FM-5c for bug-guix@gnu.org; Thu, 19 Oct 2023 05:49:36 -0400 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 1qtPep-0004qJ-K8 for bug-guix@gnu.org; Thu, 19 Oct 2023 05:49:35 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qtPfG-0003Vi-3a for bug-guix@gnu.org; Thu, 19 Oct 2023 05:50:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#66632: guix shell: --dry-run not applied if profile already cached Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 19 Oct 2023 09:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66632 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 66632@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169770895813416 (code B ref -1); Thu, 19 Oct 2023 09:50:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Oct 2023 09:49:18 +0000 Received: from localhost ([127.0.0.1]:35858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtPeX-0003UJ-Ur for submit@debbugs.gnu.org; Thu, 19 Oct 2023 05:49:18 -0400 Received: from lists.gnu.org ([2001:470:142::17]:45902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtPeR-0003T5-Mp for submit@debbugs.gnu.org; Thu, 19 Oct 2023 05:49:12 -0400 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 1qtPdv-0007HF-Pf for bug-guix@gnu.org; Thu, 19 Oct 2023 05:48:39 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtPdu-0004fc-9C for bug-guix@gnu.org; Thu, 19 Oct 2023 05:48:39 -0400 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-32163c3ece5so611597f8f.1 for ; Thu, 19 Oct 2023 02:48:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697708916; x=1698313716; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=ykHk1s/ZXOsKh3T+6XIdh50G+NTore5tzgiYo8VfIAc=; b=cAKV6Nb8X1TnJ8cAEycBEtkJxhDd/qvjyyhM73RmzuMharFnUK+Rf0hANICIrS2uNs APt19qscGWZyD3imzJ6DC3nSPsrLS1gr5enFvf2JU7S3sPXr8bmTmfvdjtF0Q1WhP5nU ibyUxCx1M8B3vw1bZHecZcwA0B/coXe9nWz1Kp5YlMEJHSSB/KHJfTiGQONv6Q//sBsx vM4a85SyUteUVTDFCkjDGSJt1b8q6zUEjN6hTD1E2PfBAyuXnM7gDT7WKjdxo3DzL0oY huZ0C1ErVaI5BCcrc2GoDONwE1UVNt0zVgl/+vkCt2aIQ9Ix/TEzGIokQBp5AAF1n0k4 F0iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697708916; x=1698313716; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ykHk1s/ZXOsKh3T+6XIdh50G+NTore5tzgiYo8VfIAc=; b=mVaHnCkGUFTCKZjovPA5h6Sbdj6UIh/3H5tN7HNFPg2kDEC+2eQv+VNhI4gY7MkFeJ N7xH+rlrk0EB6aRrF6PSIYwKTwjmP1Q6R2dR57PsclTKSnww81+uhX59W1MppylmfiSe avIbfxZU1r6wj2xlmBKSNCdgz8phiFlujd52UG4uT86sRM+2d8qRZ1mRyuQf6Uf+xaX4 PRHfhNVs09KNHeTtY1JH66BUE0SAeWrU58+egkbrI2FUtqsbz/FMgeg8/qAR5ufqnrZO x2gPckVj6rdQhA/DhZ2zEE0GODrW5RXQXX0F7DrHZJWbeLSN03VXb05ePvMoVgz0TZD7 peFg== X-Gm-Message-State: AOJu0Yzd6cApLStD7b9CsrxpxL6omDNfCH4h2KpLHjZnViib1jNxeMG4 +wJq9pvAMb8xqEI4NoPyWYFznx2pVJ4= X-Google-Smtp-Source: AGHT+IGZSYiV21vY5Z+72CpL3Cpw88s5ttHumucW57673r3QIhWKtyWMlsRjWJ1nH3A5rCS2Gq6tZw== X-Received: by 2002:a5d:43c2:0:b0:32d:d8f2:4ef with SMTP id v2-20020a5d43c2000000b0032dd8f204efmr1013030wrr.1.1697708916501; Thu, 19 Oct 2023 02:48:36 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id k1-20020a5d66c1000000b0032dbf99bf4fsm4055408wrw.89.2023.10.19.02.48.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 02:48:35 -0700 (PDT) From: Simon Tournier Date: Thu, 19 Oct 2023 10:11:44 +0200 Message-ID: <87ttqnni9r.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: 2.85 X-Migadu-Queue-Id: 6BA3568367 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: 2.85 X-TUID: y8ldtPPayENH Hi, Using Guix 6113e05, I notice a behaviour that I do not expect. --8<---------------cut here---------------start------------->8--- $ guix shell xterm --dry-run The following derivation would be built: /gnu/store/x26rsb69l3jjxczx2ap0i3app6q8prwl-profile.drv $ which xterm /usr/bin/xterm $ guix shell xterm The following derivation will be built: /gnu/store/x26rsb69l3jjxczx2ap0i3app6q8prwl-profile.drv building CA certificate bundle... listing Emacs sub-directories... building fonts directory... building directory of Info manuals... building profile with 1 package... $ which xterm /gnu/store/9phsgk6m6h7gy09698m5a0s42aqi9yid-profile/bin/xterm --8<---------------cut here---------------end--------------->8--- So far, so good. Now, even if --dry-run is provided, it enters the profile. --8<---------------cut here---------------start------------->8--- $ which xterm /usr/bin/xterm $ guix shell xterm --dry-run $ which xterm /gnu/store/9phsgk6m6h7gy09698m5a0s42aqi9yid-profile/bin/xterm --8<---------------cut here---------------end--------------->8--- Well, I thought maybe that=E2=80=99s because --rebuild-cache, but no: --8<---------------cut here---------------start------------->8--- $ which xterm /usr/bin/xterm $ guix shell xterm --dry-run --rebuild-cache $ which xterm /gnu/store/9phsgk6m6h7gy09698m5a0s42aqi9yid-profile/bin/xterm --8<---------------cut here---------------end--------------->8--- Well, and I thought that --rebuild-cache redoes the dance: --8<---------------cut here---------------start------------->8--- building CA certificate bundle... listing Emacs sub-directories... building fonts directory... building directory of Info manuals... building profile with 1 package... --8<---------------cut here---------------end--------------->8--- and not, if I do not miss something. Cheers, simon