Skip to content

Per module linkchecks #785

Open
Open
@srid

Description

checks.linkcheck = pkgs.runCommand "linkcheck"
{
nativeBuildInputs = [ pkgs.linkchecker pkgs.python3 ];
site = config.packages.default;
} ''
# https://linkchecker.github.io/linkchecker/man/linkcheckerrc.html
cat >>$TMPDIR/linkcheckrc <<EOF
[checking]
threads=''${NIX_BUILD_CORES:-4}
[AnchorCheck]
EOF
echo Checking $site
linkchecker -f $TMPDIR/linkcheckrc $site/
touch $out
'';

It would make haskell-flake CI a bit faster to have per module linkchecks. I don't want to have to run link checks for the other N-1 modules

linkcheck>  6 threads active,  1029 links queued, 

And it takes 3 minutes to check these links, while downloading 154.1MB of data ...

https://github.com/srid/haskell-flake/actions/runs/8031533843/job/21939954417#step:3:942

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions