unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: zimoun <zimon.toutoune@gmail.com>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: Sanitizer of record fields?
Date: Sat, 01 Oct 2022 18:35:24 +0200	[thread overview]
Message-ID: <874jwnec37.fsf@gnu.org> (raw)
In-Reply-To: <868rmuxpnw.fsf@gmail.com> (zimoun's message of "Thu, 08 Sep 2022 09:59:15 +0200")

Hi,

zimoun <zimon.toutoune@gmail.com> skribis:

> 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?

I’m late to the party, but I have a proposal:

  https://issues.guix.gnu.org/58231

Hope you like it!

Ludo’.


      parent reply	other threads:[~2022-10-01 16:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874jwnec37.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=zimon.toutoune@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).