unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Sanitizer of record fields?
@ 2022-09-08  7:59 zimoun
  2022-09-08  9:32 ` Maxime Devos
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: zimoun @ 2022-09-08  7:59 UTC (permalink / raw)
  To: Guix Devel

Hi,

The website is currently failing [1] to build because a typo in some
package declaration.  The error message is not very helpful,

        srfi/srfi-1.scm:241:2: In procedure map:
        In procedure map: Wrong type argument: "https://www.qt.io/"
        building pages in '/tmp/gnu.org/software/guix'...

and it was not straightforward to find the issue.  Using some ’pk’ in
the website builder restricted the origin of the failure; but still.
Thanks to Florian, they found this commit [2] introducing the package
qtshadertools where a field is unexpected,

        +    (license (package-home-page qtbase))))

and boum!

It seems impossible to detect that typo at compile-time because fields
do not have a specific type (except by convention).  Therefore, how can
we detect such typo?

We could add a lint checker.  Is it a “good” idea?

Because lint is not always applied, a check should be done when running
’make’ or a special target.  Is it a “good” idea?


1: <http://issues.guix.gnu.org/issue/57581>
2: <https://git.savannah.gnu.org/cgit/guix.git/diff/?id=1d65ff8fdeb20cc2db956093f0ecb1f3f72afc0e>


Cheers,
simon



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-10-01 16:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-08  7:59 Sanitizer of record fields? zimoun
2022-09-08  9:32 ` Maxime Devos
2022-09-08 11:16   ` zimoun
2022-09-08 11:33     ` Maxime Devos
2022-09-08 11:35 ` bokr
2022-09-08 11:43   ` Maxime Devos
2022-09-08 11:44   ` Maxime Devos
2022-09-08 12:50   ` zimoun
2022-10-01 16:35 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).