diff options
| author | Hugo Buddelmeijer <hugo@buddelmeijer.nl> | 2026-08-18 21:39:21 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-09-02 12:16:03 +0200 |
| commit | 84b0e85c3ce82e904389a5b77cbfc383215829e9 (patch) | |
| tree | 73c97de824e4f0f679d133780e99fbb49931002a /doc | |
| parent | 925c116b46941fcd41e9fa35f3fdc8a526b674a0 (diff) | |
scripts: lint: Add --manifest option.
* guix/scrips/lint.scm (show-help): Describe option.
(%options): Add 'manifest'option.
(guix-lint): Run checkers on packages defined in manifest.
* doc/guix.texi (Invoking guix lint): Document option.
* tests/guix-lint.sh: Test option. Normalize whitespace.
* guix/scripts/refresh.scm: Export packages-from-manifest.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Modified-by: Ludovic Courtès <ludo@gnu.org>
Merges: #10653
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/guix.texi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 73d616aa1b6..8f09adf9506 100644 --- a/doc/guix.texi +++ b/doc/guix.texi | |||
| @@ -16927,6 +16927,12 @@ guix lint @var{options} @var{package}@dots{} | |||
| 16927 | @end example | 16927 | @end example |
| 16928 | 16928 | ||
| 16929 | If no package is given on the command line, then all packages are checked. | 16929 | If no package is given on the command line, then all packages are checked. |
| 16930 | To check packages in a particular manifest, use: | ||
| 16931 | |||
| 16932 | @example | ||
| 16933 | guix lint @var{options} --manifest=@var{file} @dots{} | ||
| 16934 | @end example | ||
| 16935 | |||
| 16930 | To check packages in particular source files, the syntax is: | 16936 | To check packages in particular source files, the syntax is: |
| 16931 | 16937 | ||
| 16932 | @example | 16938 | @example |
| @@ -16961,6 +16967,10 @@ This is useful to unambiguously designate packages, as in this example: | |||
| 16961 | guix lint -c archival -e '(@@ (gnu packages guile) guile-3.0)' | 16967 | guix lint -c archival -e '(@@ (gnu packages guile) guile-3.0)' |
| 16962 | @end example | 16968 | @end example |
| 16963 | 16969 | ||
| 16970 | @item --manifest=@var{file} | ||
| 16971 | @itemx -m @var{file} | ||
| 16972 | Run checkers on packages in manifest @var{file} (@pxref{Writing Manifests}). | ||
| 16973 | |||
| 16964 | @item --no-network | 16974 | @item --no-network |
| 16965 | @itemx -n | 16975 | @itemx -n |
| 16966 | Only enable the checkers that do not depend on Internet access. | 16976 | Only enable the checkers that do not depend on Internet access. |
