lint: Prevent inlining of 'package-vulnerabilities'.
* guix/lint.scm (package-vulnerabilities): Prevent inlining.
This commit is contained in:
parent
836297eae5
commit
ee0ef0b58f
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2014 Cyril Roelandt <tipecaml@gmail.com>
|
;;; Copyright © 2014 Cyril Roelandt <tipecaml@gmail.com>
|
||||||
;;; Copyright © 2014, 2015 Eric Bavier <bavier@member.fsf.org>
|
;;; Copyright © 2014, 2015 Eric Bavier <bavier@member.fsf.org>
|
||||||
;;; Copyright © 2013-2022 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2013-2023 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org>
|
;;; Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org>
|
||||||
;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
|
;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
|
||||||
;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
||||||
|
@ -1485,6 +1485,9 @@ the NIST server non-fatal."
|
||||||
(package-version package))))
|
(package-version package))))
|
||||||
((force lookup) name version)))))
|
((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
|
(define* (check-vulnerabilities package
|
||||||
#:optional (package-vulnerabilities
|
#:optional (package-vulnerabilities
|
||||||
package-vulnerabilities))
|
package-vulnerabilities))
|
||||||
|
|
Reference in a new issue