mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-03 09:36:10 +02:00
docs: eval modules without access to pkgs
Replace the `package-options` test with a stricter implementation. When evaluating modules for use in the docs, provide them with a stubbed `pkgs` instance that throws an error whenever a package is evaluated. This ensures we don't accidentally use any packages in defaults or examples.
This commit is contained in:
parent
0b4a4e8327
commit
d7df583211
3 changed files with 51 additions and 96 deletions
|
@ -44,7 +44,6 @@ in
|
|||
nixpkgs-module = callTest ./nixpkgs-module.nix { };
|
||||
plugins-by-name = callTest ./plugins-by-name.nix { };
|
||||
generated = callTest ./generated.nix { };
|
||||
package-options = callTest ./package-options.nix { };
|
||||
lsp-all-servers = callTest ./lsp-servers.nix { };
|
||||
}
|
||||
# Expose some tests from the docs as flake-checks too
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue