mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
guix lint: Remove "guix lint: " prefix from warnings.
This allows editors to parse warnings correctly. * guix/scripts/lint.scm (emit-warning): Use 'format' instead of 'warning', to avoid the "guix lint: " prefix in messages. * tests/lint.scm (call-with-warnings): Indent.
This commit is contained in:
parent
52bd0810a8
commit
b002e9d08e
2 changed files with 8 additions and 8 deletions
|
@ -81,7 +81,7 @@ (define* (emit-warning package message #:optional field)
|
|||
;; provided MESSAGE.
|
||||
(let ((loc (or (package-field-location package field)
|
||||
(package-location package))))
|
||||
(warning (_ "~a: ~a: ~a~%")
|
||||
(format (guix-warning-port) (_ "~a: ~a: ~a~%")
|
||||
(location->string loc)
|
||||
(package-full-name package)
|
||||
message)))
|
||||
|
|
Loading…
Reference in a new issue