Skip to content

Commit

Permalink
fix: ignore options eval warnings in client and enforce them in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Sep 30, 2024
1 parent 6090da4 commit 1416bda
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions devenv/src/flake.tmpl.nix
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@

options = pkgs.nixosOptionsDoc {
options = builtins.removeAttrs project.options [ "_module" ];
warningsAreErrors = false;
# Unpack Nix types, e.g. literalExpression, mDoc.
transformOptions =
let isDocType = v: builtins.elem v [ "literalDocBook" "literalExpression" "literalMD" "mdDoc" ];
Expand Down
3 changes: 0 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@
{ name = url; url = url; };
options = pkgs.nixosOptionsDoc {
options = builtins.removeAttrs eval.options [ "_module" ];

warningsAreErrors = false;

transformOptions = opt: (
opt // { declarations = map rewriteSource opt.declarations; }
);
Expand Down

0 comments on commit 1416bda

Please sign in to comment.