diff options
author | Ludovic Courtès <[email protected]> | 2023-03-27 18:48:07 +0200 |
---|---|---|
committer | Ludovic Courtès <[email protected]> | 2023-03-27 18:48:52 +0200 |
commit | ee0ef0b58ff3ba4b6b2aa81246a50ab9bf020292 (patch) | |
tree | b7bb81e74a054e1d4ca59fbf8f632182fd3d2e2b | |
parent | 836297eae5ebe5fd0d434056db64770acc3f3275 (diff) |
lint: Prevent inlining of 'package-vulnerabilities'.
* guix/lint.scm (package-vulnerabilities): Prevent inlining.
-rw-r--r-- | guix/lint.scm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/guix/lint.scm b/guix/lint.scm index 3ed7fd6e4d..9eece374ff 100644 --- a/guix/lint.scm +++ b/guix/lint.scm @@ -1,7 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2014 Cyril Roelandt <[email protected]> ;;; Copyright © 2014, 2015 Eric Bavier <[email protected]> -;;; Copyright © 2013-2022 Ludovic Courtès <[email protected]> +;;; Copyright © 2013-2023 Ludovic Courtès <[email protected]> ;;; Copyright © 2015, 2016 Mathieu Lirzin <[email protected]> ;;; Copyright © 2016 Danny Milosavljevic <[email protected]> ;;; Copyright © 2016 Hartmut Goebel <[email protected]> @@ -1485,6 +1485,9 @@ the NIST server non-fatal." (package-version package)))) ((force lookup) name version))))) +;; Prevent Guile 3 from inlining this procedure so we can mock it in tests. +(set! package-vulnerabilities package-vulnerabilities) + (define* (check-vulnerabilities package #:optional (package-vulnerabilities package-vulnerabilities)) |