GNU bug report logs -
#33575
[PATCH] guix: lint: Add checker to check if inputs are sorted.
Previous Next
Reported by: Arun Isaac <arunisaac <at> systemreboot.net>
Date: Sun, 2 Dec 2018 07:43:02 UTC
Severity: normal
Tags: patch
Done: Arun Isaac <arunisaac <at> systemreboot.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Arun Isaac <arunisaac <at> systemreboot.net> writes:
> * guix/scripts/lint.scm (check-inputs-should-be-sorted): New procedure.
> (%checkers): Add it.
> [...]
>
> +(define (check-inputs-should-be-sorted package)
> + ;; Emit a warning if inputs, native inputs or propagated inputs of PACKAGE
> + ;; are not lexicographically ordered.
Hello, consider 'gspell', it has some native-inputs for build and some
for test:
(native-inputs
`(("glib" ,glib "bin")
("pkg-config" ,pkg-config)
("xmllint" ,libxml2)
;; For tests.
("aspell-dict-en" ,aspell-dict-en)
("xorg-server" ,xorg-server)))
Currently I'd seperated them by a comment like this.
If they are sorted, I have to add comment for each test input:
`(("aspell-dict-en", aspecll-dict-en) ; for test
("glib" ,glib "bin")
("pkg-config" ,pkg-config)
("xmllint" ,libxml2)
("xorg-server" ,xorg-server)) ; for test
Which will be a little annoying...
This bug report was last modified 6 years and 155 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.