mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
lint: derivation: Disable grafts, but check replacements.
* guix/scripts/lint.scm (check-derivation): Pass #:graft? #f. When 'package-replacement' exists, compute its derivation.
This commit is contained in:
parent
e90819c40a
commit
937690f909
1 changed files with 9 additions and 1 deletions
|
@ -551,7 +551,15 @@ (define (check-derivation package)
|
|||
(format #f (_ "failed to create derivation: ~a")
|
||||
(condition-message c)))))
|
||||
(with-store store
|
||||
(package-derivation store package))))
|
||||
;; Disable grafts since it can entail rebuilds.
|
||||
(package-derivation store package #:graft? #f)
|
||||
|
||||
;; If there's a replacement, make sure we can compute its
|
||||
;; derivation.
|
||||
(match (package-replacement package)
|
||||
(#f #t)
|
||||
(replacement
|
||||
(package-derivation store replacement #:graft? #f))))))
|
||||
(lambda args
|
||||
(emit-warning package
|
||||
(format #f (_ "failed to create derivation: ~s~%")
|
||||
|
|
Loading…
Reference in a new issue