From: "Ludovic Courtès" <ludo@gnu.org>
To: 53034-done@debbugs.gnu.org
Subject: bug#53034: [PATCH] shell: Cache profiles even when using package specs.
Date: Tue, 11 Jan 2022 20:37:52 +0100 [thread overview]
Message-ID: <871r1et65r.fsf@gnu.org> (raw)
In-Reply-To: <20220105184500.12171-1-ludo@gnu.org> ("Ludovic Courtès"'s message of "Wed, 5 Jan 2022 19:45:00 +0100")
Ludovic Courtès <ludo@gnu.org> skribis:
> This enables profile caching not just when '-m' or '-f' is used, but
> also when package specs are passed on the command line, as in:
>
> guix shell -D guix git
>
> It also changes profile cache keys to include the system type, which was
> previously ignored.
>
> * guix/scripts/shell.scm (options-with-caching)[single-file-for-caching]:
> Remove.
> Call 'profile-cached-gc-root' instead; adjust to accept two values.
> (profile-cache-primary-key): New procedure.
> (profile-cache-key): Remove.
> (profile-file-cache-key, profile-spec-cache-key): New procedures.
> (profile-cached-gc-root): Rewrite to include functionality formally in
> 'single-file-for-caching', but extend to handle package specs.
> * gnu/packages.scm (cache-is-authoritative?): Export.
> * guix/transformations.scm (transformation-option-key?): New procedure.
Pushed as 0552dcb294bbfed76d7a495f5e368c53f20b852a. I adjusted
doc/guix.texi, which I had forgotten to do in the patch I posted.
Please let me how caching works for you!
Ludo’.
prev parent reply other threads:[~2022-01-11 19:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-05 18:45 [bug#53034] [PATCH] shell: Cache profiles even when using package specs Ludovic Courtès
2022-01-11 19:37 ` Ludovic Courtès [this message]
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=871r1et65r.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=53034-done@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.