mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2024-12-14 11:47:31 +00:00
Fix error location
The path didn't make it into the message because of a silly coding mistake and overlooking the actual location in manual testing.
This commit is contained in:
parent
c8c8e5661e
commit
e21f594423
1 changed files with 1 additions and 2 deletions
3
lib.nix
3
lib.nix
|
@ -84,7 +84,6 @@ let
|
|||
, moduleLocation ? "${self.outPath}/flake.nix"
|
||||
}:
|
||||
let
|
||||
module = lib.setDefaultModuleLocation errorLocation module;
|
||||
inputsPos = builtins.unsafeGetAttrPos "inputs" args;
|
||||
errorLocation =
|
||||
# Best case: user makes it explicit
|
||||
|
@ -120,7 +119,7 @@ let
|
|||
inherit self flake-parts-lib moduleLocation;
|
||||
inputs = args.inputs or /* legacy, warned above */ self.inputs;
|
||||
} // specialArgs;
|
||||
modules = [ ./all-modules.nix module ];
|
||||
modules = [ ./all-modules.nix (lib.setDefaultModuleLocation errorLocation module) ];
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue