From: Maxime Devos <maximedevos@telenet.be>
To: zimoun <zimon.toutoune@gmail.com>, Guix Devel <guix-devel@gnu.org>
Subject: Re: Sanitizer of record fields?
Date: Thu, 8 Sep 2022 13:33:56 +0200 [thread overview]
Message-ID: <14538bbd-71dd-0e48-4a17-ca0fd05987ff@telenet.be> (raw)
In-Reply-To: <86r10mw1zc.fsf@gmail.com>
[-- Attachment #1.1.1: Type: text/plain, Size: 1276 bytes --]
On 08-09-2022 13:16, zimoun wrote:
> Hi,
>
> On Thu, 08 Sep 2022 at 11:32, Maxime Devos <maximedevos@telenet.be> wrote:
>> On 08-09-2022 09:59, zimoun wrote:
>>> We could add a lint checker. Is it a “good” idea?
>> We already have one, 'check-license'.
> Yeah, but I was talking about check if the field return the expected
> record type. Not only for the license one.
Then maybe add more checkers, for the other fields as well? I'm not seeing
any downsides.
>>> Because lint is not always applied, a check should be done when running
>>> ’make’ or a special target. Is it a “good” idea?
>> I suppose it is a possibility, but it adds a few seconds to every 'make':
>>
>> time ./pre-inst-env guix lint --checkers=license
>> make all-recursive [...]
>> gnu/packages/qt.scm:1373:13: qtshadertools@6.3.1: invalid license field
>> gnu/packages/tex.scm:11816:2: texlive-setspace@59745: invalid
> It means that “guix lint” is not systematically run. :-)
>
> I agree that the overhead on ’make’ is probably not worth. Maybe, more
> checks could be run by the pre push hook. WDYT?
I suppose? Not seeing any immediate problems, but I haven't ever pushed
to the Guix repo or ever used pre-push hooks ...
Greetings,
Maxime.
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
next prev parent reply other threads:[~2022-09-08 11:45 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 [this message]
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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=14538bbd-71dd-0e48-4a17-ca0fd05987ff@telenet.be \
--to=maximedevos@telenet.be \
--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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.