[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/11: packages: Prevent inlining of 'find-best-packages-by-name'.
From: |
guix-commits |
Subject: |
01/11: packages: Prevent inlining of 'find-best-packages-by-name'. |
Date: |
Fri, 17 Jan 2020 08:25:45 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 886a76073e4654449f413831897ffde736a07c91
Author: Ludovic Courtès <address@hidden>
AuthorDate: Fri Jan 17 11:19:42 2020 +0100
packages: Prevent inlining of 'find-best-packages-by-name'.
This allows 'tests/packages.scm' to mock it.
* gnu/packages.scm (find-best-packages-by-name): Set! it at the top
level to prevent it from being inline on Guile 3.
---
gnu/packages.scm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gnu/packages.scm b/gnu/packages.scm
index 143469b..d22c992 100644
--- a/gnu/packages.scm
+++ b/gnu/packages.scm
@@ -369,6 +369,9 @@ VERSION."
(string=? (package-version p) highest))
matches))))))
+;; Prevent Guile 3 from inlining this procedure so we can mock it in tests.
+(set! find-best-packages-by-name find-best-packages-by-name)
+
(define (generate-package-cache directory)
"Generate under DIRECTORY a cache of all the available packages.
- branch master updated (df18ea6 -> 05f8a14), guix-commits, 2020/01/17
- 01/11: packages: Prevent inlining of 'find-best-packages-by-name'.,
guix-commits <=
- 02/11: lint: derivation: Adjust exception handling for Guile 3., guix-commits, 2020/01/17
- 03/11: lint: vulnerabilities: Avoid 'mock' in test., guix-commits, 2020/01/17
- 04/11: doc: cookbook: Avoid URL reference to the manual., guix-commits, 2020/01/17
- 05/11: doc: Replace some invalid uses of @var with @code., guix-commits, 2020/01/17
- 06/11: import: opam: Avoid uses of '@@' in tests., guix-commits, 2020/01/17
- 09/11: gnu: Add imv., guix-commits, 2020/01/17
- 11/11: git-authenticate: Add new key for atheia., guix-commits, 2020/01/17
- 10/11: gnu: imv: Record the absolute file name of 'imv-x11' and 'imv-wayland'., guix-commits, 2020/01/17
- 07/11: import: texlive: Avoid uses of '@@' in tests., guix-commits, 2020/01/17
- 08/11: gnu: Add corsix-th., guix-commits, 2020/01/17