mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-27 19:41:50 +02:00
lint: 'inputs-should-be-native' checks for intltool, itstool and glib:bin.
* guix/scripts/lint.scm (check-inputs-should-be-native): Warn when intltool, itstool or glib:bin isn't a native-input. * tests/lint.scm (inputs: glib:bin is probably a native input): Add test. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
committed by
Ludovic Courtès
parent
0f53b886e2
commit
99fe215cc1
+11
-1
@@ -31,6 +31,7 @@
|
||||
#:use-module (guix scripts lint)
|
||||
#:use-module (guix ui)
|
||||
#:use-module (gnu packages)
|
||||
#:use-module (gnu packages glib)
|
||||
#:use-module (gnu packages pkg-config)
|
||||
#:use-module (web server)
|
||||
#:use-module (web server http)
|
||||
@@ -319,7 +320,16 @@ string) on HTTP requests."
|
||||
(let ((pkg (dummy-package "x"
|
||||
(inputs `(("pkg-config" ,pkg-config))))))
|
||||
(check-inputs-should-be-native pkg)))
|
||||
"pkg-config should probably be a native input")))
|
||||
"'pkg-config' should probably be a native input")))
|
||||
|
||||
(test-assert "inputs: glib:bin is probably a native input"
|
||||
(->bool
|
||||
(string-contains
|
||||
(with-warnings
|
||||
(let ((pkg (dummy-package "x"
|
||||
(inputs `(("glib" ,glib "bin"))))))
|
||||
(check-inputs-should-be-native pkg)))
|
||||
"'glib:bin' should probably be a native input")))
|
||||
|
||||
(test-assert "patches: file names"
|
||||
(->bool
|
||||
|
||||
Reference in New Issue
Block a user