mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2024-12-14 11:47:31 +00:00
Merge pull request #194 from hercules-ci/error-location
Fix default error location
This commit is contained in:
commit
f76e870d64
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