mirror of
git://git.savannah.gnu.org/guix/data-service.git
synced 2023-12-14 03:23:03 +01:00
Pass #:store to checkers that support it
The derivation checker currently opens a store connection on its own, but by passing the already open connection in, it won't have to do that, and hopefully this will make checking all the packages faster.
This commit is contained in:
parent
ca0d3ee754
commit
994318782a
|
@ -347,6 +347,10 @@ WHERE job_id = $1"
|
|||
%local-checkers))
|
||||
(check (lint-checker-check checker)))
|
||||
|
||||
(define lint-checker-requires-store?-defined?
|
||||
(defined? 'lint-checker-requires-store?
|
||||
(resolve-module '(guix lint))))
|
||||
|
||||
(define (process-lint-warning lint-warning)
|
||||
(list
|
||||
(match (lint-warning-location lint-warning)
|
||||
|
@ -397,7 +401,11 @@ WHERE job_id = $1"
|
|||
(cons
|
||||
package-id
|
||||
(map process-lint-warning
|
||||
(check package))))
|
||||
(if (and lint-checker-requires-store?-defined?
|
||||
(lint-checker-requires-store? checker))
|
||||
|
||||
(check package #:store store)
|
||||
(check package)))))
|
||||
%package-table)))))
|
||||
|
||||
(and
|
||||
|
|
Loading…
Reference in a new issue