[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/08: shell: Disable caching when '-p' is passed.
From: |
guix-commits |
Subject: |
01/08: shell: Disable caching when '-p' is passed. |
Date: |
Wed, 2 Mar 2022 13:27:07 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit ee6275c9744f8649bccc8cfa7c52d100044d7570
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed Mar 2 11:58:51 2022 +0100
shell: Disable caching when '-p' is passed.
Fixes <https://issues.guix.gnu.org/53658>.
Reported by Guillaume Le Vaillant <glv@posteo.net>.
Previously we would wrongfully cache things, by adding a
new (profile . _) pair to the option alist, when the user runs:
guix shell -p /path/to/profile -q
* guix/scripts/shell.scm (profile-cached-gc-root): Add ('profile . _) case.
---
guix/scripts/shell.scm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/guix/scripts/shell.scm b/guix/scripts/shell.scm
index a92932cbc9..1eab05d737 100644
--- a/guix/scripts/shell.scm
+++ b/guix/scripts/shell.scm
@@ -372,6 +372,10 @@ return #f and #f."
;; least depending on external state (with-source, with-commit, etc.),
;; so do not cache anything when they're used.
(values #f #f))
+ ((('profile . _) . _)
+ ;; If the user already specified a profile, there's nothing more to
+ ;; cache.
+ (values #f #f))
((('system . system) . rest)
(loop rest system file specs))
((_ . rest) (loop rest system file specs)))))
- branch master updated (209a3274f8 -> be84fb701b), guix-commits, 2022/03/02
- 01/08: shell: Disable caching when '-p' is passed.,
guix-commits <=
- 08/08: doc: Publish the Slovak translation of the cookbook., guix-commits, 2022/03/02
- 04/08: gnu: texlive-latex-listings: Rename to "texlive-listings"., guix-commits, 2022/03/02
- 03/08: gnu: texlive-latex-pgf: Rename to "texlive-pgf"., guix-commits, 2022/03/02
- 06/08: doc: Add "Using TeX and LaTeX" chapter., guix-commits, 2022/03/02
- 02/08: gnu: texlive-bin: Skip faulty tests on armhf-linux., guix-commits, 2022/03/02
- 05/08: gnu: texlive-latex-wrapfig: Rename to "texlive-wrapfig"., guix-commits, 2022/03/02
- 07/08: gnu: hypre: Remove input labels., guix-commits, 2022/03/02