inventory: fix internal indentifier

This commit is contained in:
Johannes Kirschbauer
2025-10-19 14:29:54 +02:00
parent e5967bb0de
commit afcc5d9e26
2 changed files with 4 additions and 4 deletions

View File

@@ -95,7 +95,7 @@
grouped = lib.foldlAttrs ( grouped = lib.foldlAttrs (
acc: instanceName: instance: acc: instanceName: instance:
let let
inputName = if instance.module.input == null then "self" else instance.module.input; inputName = if instance.module.input == null then "<clan-core>" else instance.module.input;
id = inputName + "-" + instance.module.name; id = inputName + "-" + instance.module.name;
in in
acc acc

View File

@@ -79,7 +79,7 @@ in
{ {
# Test that the module is mapped into the output # Test that the module is mapped into the output
# We might change the attribute name in the future # We might change the attribute name in the future
expr = res.importedModulesEvaluated ? "self-simple-module"; expr = res.importedModulesEvaluated ? "<clan-core>-simple-module";
expected = true; expected = true;
inherit res; inherit res;
}; };
@@ -133,8 +133,8 @@ in
# We might change the attribute name in the future # We might change the attribute name in the future
expr = lib.mapAttrs (_n: v: builtins.length v) res.grouped; expr = lib.mapAttrs (_n: v: builtins.length v) res.grouped;
expected = { expected = {
self-A = 2; "<clan-core>-A" = 2;
self-B = 1; "<clan-core>-B" = 1;
}; };
}; };