aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludovic.courtes@inria.fr>2024-10-07 10:24:43 +0200
committerLudovic Courtès <ludo@gnu.org>2024-10-22 00:27:49 +0200
commit6d8107c967a554e23b0c58c8933894d4468ad596 (patch)
tree2a6bc2a27c9eca743ab24d419fb075a8de4e2414 /gnu
parent8bd013011ddde259c0dd0334847ce31a63263962 (diff)
downloadguix-6d8107c967a554e23b0c58c8933894d4468ad596.tar.gz
guix-6d8107c967a554e23b0c58c8933894d4468ad596.zip
shell: Enable caching when using deterministic package transformations.
Until now, using any package transformation would disable the automatic GC root creation and caching in ‘guix shell’. This change introduces a finer-grain distinction: a command like: guix shell --tune inkscape is now subject to caching, whereas: guix shell --with-latest=inkscape inkscape remains non-cacheable. * guix/transformations.scm (%transformations-with-external-dependencies): New variable. (cacheable-transformation-option-key?): New procedure. * guix/scripts/shell.scm (profile-cached-gc-root): In the ‘transformation-option-key?’ clause, call ‘loop’ when ‘cacheable-transformation-option-key?’ returns true. Change-Id: I847b661dfea20ecf851db2023a5c7ea8c5b5ca7c
Diffstat (limited to 'gnu')
0 files changed, 0 insertions, 0 deletions