1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2024-12-14 11:47:31 +00:00

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.
This commit is contained in:
Robert Hensing 2023-10-14 00:06:42 +02:00
parent f427ecf1a0
commit c8c8e5661e

View file

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