diff options
author | Ludovic Courtès <ludo@gnu.org> | 2022-01-05 19:29:50 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-01-11 20:34:59 +0100 |
commit | 0552dcb294bbfed76d7a495f5e368c53f20b852a (patch) | |
tree | 9e6c02128719eb15ca8eb3a76aad66f811942a04 /tests/grafts.scm | |
parent | 6128c274786fc0c109c0c4ce257e5d8b01ac86c3 (diff) |
shell: Cache profiles even when using package specs.
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.
* doc/guix.texi (Invoking guix shell): Move '--rebuild-cache'
documentation to the bottom, just above '--root'. Explain caching and
how these two options relate to that.
Diffstat (limited to 'tests/grafts.scm')
0 files changed, 0 insertions, 0 deletions