packages: Prevent inlining of 'find-best-packages-by-name'.
[jackhill/guix/guix.git] / gnu / packages.scm
index 143469b..d22c992 100644 (file)
@@ -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.