From c8c8e5661e2b93f2459b0ed6da1cbe31c7dba347 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sat, 14 Oct 2023 00:06:42 +0200 Subject: [PATCH] Remove errorLocation from the tests As mentioned in the previous commit, we don't have a use case for this in flake-parts yet, as far as I'm aware. It can be exposed when we do have a concrete use case where it is needed. --- dev/tests/eval-tests.nix | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/dev/tests/eval-tests.nix b/dev/tests/eval-tests.nix index c3c03b6..2da3d99 100644 --- a/dev/tests/eval-tests.nix +++ b/dev/tests/eval-tests.nix @@ -28,17 +28,17 @@ rec { emptyExposeArgs = mkFlake { inputs.self = { outPath = "the self outpath"; }; } - ({ config, moduleLocation, errorLocation, ... }: { + ({ config, moduleLocation, ... }: { flake = { - inherit moduleLocation errorLocation; + inherit moduleLocation; }; }); emptyExposeArgsNoSelf = mkFlake { inputs.self = throw "self won't be available in case of some errors"; } - ({ config, moduleLocation, errorLocation, ... }: { + ({ config, moduleLocation, ... }: { flake = { - inherit moduleLocation errorLocation; + inherit moduleLocation; }; }); @@ -180,10 +180,6 @@ rec { assert emptyExposeArgs.moduleLocation == "the self outpath/flake.nix"; - assert emptyExposeArgs.errorLocation == __curPos.file; - - assert emptyExposeArgsNoSelf.errorLocation == __curPos.file; - ok; result = runTests "ok";