Closed brianmcgee closed 2 months ago
@roberth nix flake check
is failing with The module documentation must not depend on pkgs attributes such as _type
.
I don't know how to resolve it whilst retaining the freeform type. Any ideas?
It's just that the pkgs stub used in the check is incomplete. You could either reuse the logic from https://github.com/hercules-ci/flake.parts-website (non-trivial if you want to work around https://github.com/NixOS/nix/issues/6124) or apply a patch like this:
Allows for experimenting with new config options in
treefmt
without having to updatetreefmt-nix
, whilst at the same time retaining types for stable config options.Will allow passing pipeline related options for
2.0.0-rc1
for example.