X-Loop: help-debbugs@HIDDEN
Subject: bug#66632: guix shell: --dry-run not applied if profile already cached
Resent-From: Simon Tournier <zimon.toutoune@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 19 Oct 2023 09:50:02 +0000
Resent-Message-ID: <handler.66632.B.169770895813416 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 66632
X-GNU-PR-Package: guix
X-GNU-PR-Keywords:
To: 66632 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-guix@HIDDEN
Received: via spool by submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1qtPeX-0003UJ-Ur
for submit <at> 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 <zimon.toutoune@HIDDEN>) id 1qtPeR-0003T5-Mp
for submit <at> 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 <zimon.toutoune@HIDDEN>)
id 1qtPdv-0007HF-Pf
for bug-guix@HIDDEN; 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 <zimon.toutoune@HIDDEN>)
id 1qtPdu-0004fc-9C
for bug-guix@HIDDEN; Thu, 19 Oct 2023 05:48:39 -0400
Received: by mail-wr1-x42c.google.com with SMTP id
ffacd0b85a97d-32163c3ece5so611597f8f.1
for <bug-guix@HIDDEN>; 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 <bug-guix@HIDDEN>
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 19 Oct 2023 02:48:35 -0700 (PDT)
From: Simon Tournier <zimon.toutoune@HIDDEN>
Date: Thu, 19 Oct 2023 10:11:44 +0200
Message-ID: <87ttqnni9r.fsf@HIDDEN>
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@HIDDEN; 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-Spam-Score: 1.0 (+)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)
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
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Simon Tournier <zimon.toutoune@HIDDEN> Subject: bug#66632: Acknowledgement (guix shell: --dry-run not applied if profile already cached) Message-ID: <handler.66632.B.169770895813416.ack <at> debbugs.gnu.org> References: <87ttqnni9r.fsf@HIDDEN> X-Gnu-PR-Message: ack 66632 X-Gnu-PR-Package: guix Reply-To: 66632 <at> debbugs.gnu.org Date: Thu, 19 Oct 2023 09:50:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guix@HIDDEN If you wish to submit further information on this problem, please send it to 66632 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 66632: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D66632 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.