GNU bug report logs - #66632
guix shell: --dry-run not applied if profile already cached

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Simon Tournier <zimon.toutoune@HIDDEN>; dated Thu, 19 Oct 2023 09:50:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Oct 2023 09:49:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 19 05:49:18 2023
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>
To: bug-guix@HIDDEN
Subject: guix shell: --dry-run not applied if profile already cached
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-Debbugs-Envelope-To: submit
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




Acknowledgement sent to Simon Tournier <zimon.toutoune@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#66632; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 19 Oct 2023 10:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.