mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-03 09:36:10 +02:00
modules/output: check warnings+assertions on build.package
Add a `build.packageUnchecked` option for use instead of the old `check` evalNixvim argument.
This commit is contained in:
parent
2ea7009e61
commit
6a1bf6bdc3
9 changed files with 50 additions and 48 deletions
|
@ -33,7 +33,7 @@ in
|
|||
'';
|
||||
assertions = [
|
||||
{
|
||||
assertion = pluginCount config.build.package config.build.extraFiles "start" == 1;
|
||||
assertion = pluginCount config.build.packageUnchecked config.build.extraFiles "start" == 1;
|
||||
message = "More than one plugin is defined in packpathDirs, expected one plugin pack.";
|
||||
}
|
||||
];
|
||||
|
@ -50,7 +50,7 @@ in
|
|||
];
|
||||
assertions = [
|
||||
{
|
||||
assertion = pluginCount config.build.package config.build.extraFiles "start" >= 2;
|
||||
assertion = pluginCount config.build.packageUnchecked config.build.extraFiles "start" >= 2;
|
||||
message = "Only one plugin is defined in packpathDirs, expected at least two.";
|
||||
}
|
||||
];
|
||||
|
@ -77,7 +77,7 @@ in
|
|||
'';
|
||||
assertions = [
|
||||
{
|
||||
assertion = pluginCount config.build.package config.build.extraFiles "start" == 1;
|
||||
assertion = pluginCount config.build.packageUnchecked config.build.extraFiles "start" == 1;
|
||||
message = "More than one plugin is defined in packpathDirs.";
|
||||
}
|
||||
];
|
||||
|
@ -105,7 +105,7 @@ in
|
|||
'';
|
||||
assertions = [
|
||||
{
|
||||
assertion = pluginCount config.build.package config.build.extraFiles "start" == 1;
|
||||
assertion = pluginCount config.build.packageUnchecked config.build.extraFiles "start" == 1;
|
||||
message = "More than one plugin is defined in packpathDirs.";
|
||||
}
|
||||
];
|
||||
|
@ -132,7 +132,7 @@ in
|
|||
'';
|
||||
assertions = [
|
||||
{
|
||||
assertion = pluginCount config.build.package config.build.extraFiles "start" == 1;
|
||||
assertion = pluginCount config.build.packageUnchecked config.build.extraFiles "start" == 1;
|
||||
message = "More than one plugin is defined in packpathDirs.";
|
||||
}
|
||||
];
|
||||
|
@ -186,11 +186,11 @@ in
|
|||
'';
|
||||
assertions = [
|
||||
{
|
||||
assertion = pluginCount config.build.package config.build.extraFiles "start" == 1;
|
||||
assertion = pluginCount config.build.packageUnchecked config.build.extraFiles "start" == 1;
|
||||
message = "More than one start plugin is defined in packpathDirs";
|
||||
}
|
||||
{
|
||||
assertion = pluginCount config.build.package config.build.extraFiles "opt" == 2;
|
||||
assertion = pluginCount config.build.packageUnchecked config.build.extraFiles "opt" == 2;
|
||||
message = "Less than two opt plugins are defined in packpathDirs";
|
||||
}
|
||||
];
|
||||
|
@ -233,7 +233,7 @@ in
|
|||
'';
|
||||
assertions = [
|
||||
{
|
||||
assertion = pluginCount config.build.package config.build.extraFiles "start" == 1;
|
||||
assertion = pluginCount config.build.packageUnchecked config.build.extraFiles "start" == 1;
|
||||
message = "More than one start plugin is defined in packpathDirs";
|
||||
}
|
||||
];
|
||||
|
@ -303,7 +303,7 @@ in
|
|||
'';
|
||||
assertions = [
|
||||
{
|
||||
assertion = pluginCount config.build.package config.build.extraFiles "start" == 1;
|
||||
assertion = pluginCount config.build.packageUnchecked config.build.extraFiles "start" == 1;
|
||||
message = "More than one start plugin is defined in packpathDirs";
|
||||
}
|
||||
];
|
||||
|
@ -369,7 +369,7 @@ in
|
|||
assertions = [
|
||||
{
|
||||
# plugin-pack, nvim-treesitter, nvim-lspconfig, telescope-nvim, nvim-cmp
|
||||
assertion = pluginCount config.build.package config.build.extraFiles "start" == 5;
|
||||
assertion = pluginCount config.build.packageUnchecked config.build.extraFiles "start" == 5;
|
||||
message = "Wrong number of plugins in packpathDirs";
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue