1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2024-12-14 11:47:31 +00:00

Test unset extraInputsFlake

This commit is contained in:
Robert Hensing 2024-09-12 16:56:41 +02:00
parent 78bf03cea3
commit 5766ecf987

View file

@ -158,6 +158,17 @@ rec {
flake.foo = true;
});
partitionWithoutExtraInputsFlake = mkFlake
{
inputs.self = { };
}
({ config, ... }: {
imports = [ flake-parts.flakeModules.partitions ];
systems = [ "x86_64-linux" ];
partitions.dev.module = { inputs, ... }: builtins.seq inputs { };
partitionedAttrs.devShells = "dev";
});
runTests = ok:
assert empty == {
@ -242,6 +253,8 @@ rec {
assert specialArgFlake.foo;
assert builtins.isAttrs partitionWithoutExtraInputsFlake.devShells.x86_64-linux;
ok;
result = runTests "ok";