mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2024-12-14 11:47:31 +00:00
Merge pull request #248 from Atry/patch-3
Remove the default value of `extraInputsFlake`
This commit is contained in:
commit
bcef6817a8
2 changed files with 13 additions and 1 deletions
|
@ -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";
|
||||
|
|
|
@ -12,7 +12,6 @@ let
|
|||
options = {
|
||||
extraInputsFlake = mkOption {
|
||||
type = types.raw;
|
||||
default = { };
|
||||
description = ''
|
||||
Location of a flake whose inputs to add to the inputs module argument in the partition.
|
||||
Note that flake `follows` are resolved without any awareness of inputs that are not in the flake.
|
||||
|
|
Loading…
Reference in a new issue