From e21f594423a34944b2eece27e62f1fcca0c1c90a Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sun, 29 Oct 2023 12:30:12 +0100 Subject: [PATCH] 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. --- lib.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib.nix b/lib.nix index eaa5679..64c35c1 100644 --- a/lib.nix +++ b/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) ]; } );