1
0
Fork 0
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:
Robert Hensing 2024-09-12 16:57:50 +02:00 committed by GitHub
commit bcef6817a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 1 deletions

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";

View file

@ -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.