all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Simon Tournier <zimon.toutoune@gmail.com>
To: 66632@debbugs.gnu.org
Subject: bug#66632: guix shell: --dry-run not applied if profile already cached
Date: Thu, 19 Oct 2023 10:11:44 +0200	[thread overview]
Message-ID: <87ttqnni9r.fsf@gmail.com> (raw)

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’s 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




                 reply	other threads:[~2023-10-19  9:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ttqnni9r.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=66632@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.