From: Vagrant Cascadian <vagrant@debian.org>
To: zimoun <zimon.toutoune@gmail.com>, guix-devel@gnu.org
Subject: Re: guix lint should support overrides
Date: Wed, 24 Aug 2022 14:06:57 -0700 [thread overview]
Message-ID: <87ilmhic5q.fsf@contorta> (raw)
In-Reply-To: <87h722xdvo.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2550 bytes --]
On 2022-08-24, zimoun wrote:
> On Tue, 23 Aug 2022 at 15:22, Vagrant Cascadian <vagrant@debian.org> wrote:
>
>> But, because there is no way to silence a particular inappropriate
>> suggestion from guix lint, it becomes noise, and each person evaluating
>> the results of the package in the future then needs to take time to
>> figure out if guix lint is wrong, or something should be changed.
>
> Do you have some packages as example? In order to be concrete about the
> false-positive and how to programatically fix them.
Off the top of my head, no, though it came up in the course of a
convesation on #guix recently, and it reminded me of advice I've gotten
in the past to just ignore a particular check on a particular package.
> For instance, do you mean exclude on specific checker for one specific
> package?
Yes, this! :)
Maybe something like:
(define-public thispackages
(package
(name "thispackages"
...
(lint-overides
(list
;; The upstream name is actually "This Packages", not a typo.
"typo in description: 'This Packages' should be 'This Package'"))
And then guix lint would hide or ignore things that would otherwise emit
the strings listed in lint-overrides ... or something like that. Maybe
exact match, maybe get into a little pattern matching, not
sure. Implementation is not my strong point here. :)
You might also want to add a guix lint check for unused overrides
(e.g. something that no longer triggers the issue, either fixed upstream
in guix lint itself, or some other way).
> Or teach one specific checker for one specific package in
> order to avoid an error specific to this package running this specific
> checker?
No. Maybe in some cases this might make sense, but was not what I was
suggesting.
>> The downside is this becomes one more thing to maintain... in exchange
>> for making the output having a higher degree of relevency in "guix lint"
>> output, so you can be more confident that someone hasn't already looked
>> at a given issue and decided it was best to just ignore it (not that
>> that will not ever happen anymore, but still).
>
> The cost for a poor maintenance is low compared to the benefit, IMHO.
>
> For instance, it is boring to run massive lint:
>
> 1. because “guix lint” does not support the option --manifest
> 2. because “guix lint” reports some false-positive messages
Yeah, my suggestion was mostly about trying to address aspects of point
2.
live well,
vagrant
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
next prev parent reply other threads:[~2022-08-24 21:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-23 22:22 guix lint should support overrides Vagrant Cascadian
2022-08-24 8:08 ` zimoun
2022-08-24 20:47 ` Maxime Devos
2022-09-02 13:40 ` Ludovic Courtès
2022-08-24 21:06 ` Vagrant Cascadian [this message]
2022-09-05 16:52 ` zimoun
2022-09-05 17:43 ` Vagrant Cascadian
2022-08-25 11:31 ` Efraim Flashner
2022-09-02 16:28 ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
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=87ilmhic5q.fsf@contorta \
--to=vagrant@debian.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).