Ludovic Courtès 0552dcb294
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.
2022-01-11 20:34:59 +01:00
..
2022-01-01 15:23:24 +01:00
2021-01-04 23:54:16 +01:00
2020-12-09 22:25:17 +01:00
2021-01-04 23:54:16 +01:00
2021-09-21 15:15:52 +02:00
2021-04-12 18:42:22 +02:00
2021-12-17 21:04:25 -08:00
2020-12-19 23:25:01 +01:00
2021-08-12 12:34:13 +02:00
2021-12-23 08:59:44 -05:00
2021-05-11 12:49:53 +02:00
2022-01-01 02:02:44 -05:00
2021-12-30 13:41:27 +01:00