guix/guix/scripts
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
..
container
git
home home: import: Fix handling of manifest entries with specific output. 2022-01-05 23:44:18 +01:00
import import: texlive: Update error message. 2022-01-10 12:47:01 +01:00
system
archive.scm
authenticate.scm
build.scm
challenge.scm challenge: Store item contents are returned in canonical order. 2021-12-12 00:27:53 +01:00
container.scm
copy.scm
deploy.scm
describe.scm
discover.scm
download.scm
edit.scm
environment.scm environment: Suggestion code gracefully handles empty "/bin" directories. 2021-12-10 15:32:44 +01:00
gc.scm
git.scm
graph.scm
hash.scm guix hash: Allow '-r' as a non-deprecated alias. 2022-01-10 19:31:02 +01:00
home.scm guix home, system: Use 'leave' to report missing generations. 2022-01-06 16:27:30 +01:00
import.scm
install.scm
lint.scm
offload.scm offload: Do not read ~/.ssh/config. 2022-01-03 19:32:08 +01:00
pack.scm
package.scm
perform-download.scm
processes.scm
publish.scm
pull.scm
refresh.scm refresh: Support non-tarball sources. 2022-01-06 16:27:30 +01:00
remove.scm
repl.scm
search.scm
shell.scm shell: Cache profiles even when using package specs. 2022-01-11 20:34:59 +01:00
show.scm
size.scm
style.scm style: '-S format' canonicalizes comments. 2022-01-10 14:59:26 +01:00
substitute.scm substitute: Document the limited UI. 2021-12-29 01:43:24 +01:00
system.scm guix home, system: Use 'leave' to report missing generations. 2022-01-06 16:27:30 +01:00
time-machine.scm
upgrade.scm
weather.scm