Skip to content

Commit

Permalink
Fix license report generation
Browse files Browse the repository at this point in the history
  • Loading branch information
sellout committed Aug 25, 2024
1 parent 5baa38c commit 77f5ca5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .config/project/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ in {
};

imports = [
(import ./github-ci.nix githubSystems [config.project.name])
(import ./github-ci.nix githubSystems {
yaya = "core";
yaya-containers = "containers";
yaya-hedgehog = "hedgehog";
yaya-quickcheck = "quickcheck";
yaya-unsafe = "unsafe";
})
./hackage-publish.nix
./hlint.nix
];
Expand Down
4 changes: 2 additions & 2 deletions .config/project/github-ci.nix
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ in {
name = "check if licenses have changed";
run = ''
${lib.toShellVar "packages" haskellPackages}
for package in "''${packages[@]}"; do
for package in "''${!packages[@]}"; do
{
echo "**NB**: This captures the licenses associated with a particular set of dependency versions. If your own build solves differently, it’s possible that the licenses may have changed, or even that the set of dependencies itself is different. Please make sure you run [\`cabal-plan license-report\`](https://hackage.haskell.org/package/cabal-plan) on your own components rather than assuming this is authoritative."
echo
cabal-plan license-report "$package:lib:$package"
} >"$package/docs/license-report.md"
} >"''${packages[''${package}]}/docs/license-report.md"
done
git diff --exit-code */docs/license-report.md
'';
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 77f5ca5

Please sign in to comment.