mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-13 14:40:21 -05:00
lint: Report on the package being checked.
* guix/scripts/lint.scm (run-checkers): Check whether (current-error-port) is a tty, and print the package being checked and the checker currently running when it is.
This commit is contained in:
parent
07af3e5efe
commit
c79c6e598a
1 changed files with 9 additions and 3 deletions
|
@ -408,9 +408,15 @@ (define %checkers
|
|||
|
||||
(define (run-checkers package checkers)
|
||||
;; Run the given CHECKERS on PACKAGE.
|
||||
(for-each (lambda (checker)
|
||||
((lint-checker-check checker) package))
|
||||
checkers))
|
||||
(let ((tty? (isatty? (current-error-port)))
|
||||
(name (package-full-name package)))
|
||||
(for-each (lambda (checker)
|
||||
(when tty?
|
||||
(format (current-error-port) "checking ~a [~a]...\r"
|
||||
name (lint-checker-name checker))
|
||||
(force-output (current-error-port)))
|
||||
((lint-checker-check checker) package))
|
||||
checkers)))
|
||||
|
||||
|
||||
;;;
|
||||
|
|
Loading…
Reference in a new issue