diff options
author | Christopher Baines <mail@cbaines.net> | 2022-11-06 12:29:18 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2022-11-06 13:15:35 +0100 |
commit | abff4a1a356447f6c393c8c01c7a77e764cd8b93 (patch) | |
tree | 7239f77d0c7f51b336e924d4f9946a6f6346d8ac /CODE-OF-CONDUCT | |
parent | a6c90c293d5b0c77d3e1e967546fe0aadc53a102 (diff) | |
download | guix-split-derivation-lint-checker.tar guix-split-derivation-lint-checker.tar.gz |
lint: Split the derivation lint checker by system.split-derivation-lint-checker
Currently, if you attempt to run the derivation checker on all packages, the
Guile process will run out of memory. I think a contributing factor to this is
that the checker forces an inefficient order when you want to generate
derivations for all the supported systems of each package, constantly
switching system then package.
This problem also impacts the Guix Data Service, since it tries to run the
derivation checker for all packages.
The changes in this commit to split the derivation lint checker in to several,
one for each system, means that you can now treat each system separately,
which should be better for caching purposes.
If it's desirable to keep some notion of checking all supported systems for a
single package, I think lint checker groups could be added, so that you could
ask for the "derivation" checker, and this would run all the derivation
checkers.
* guix/lint.scm (check-derivation): Adapt to make-check-derivation-for-system.
(%derivation-checkers): New variable.
(%local-checkers): Include all %derivation-checkers.
* doc/guix.texi (Invoking guix lint): Update.
Diffstat (limited to 'CODE-OF-CONDUCT')
0 files changed, 0 insertions, 0 deletions