pkgs-lib/hocon: fix type for _includes

This commit is contained in:
h7x4 2025-03-24 21:21:34 +01:00
parent f6089dbf47
commit d6041cc2ca
No known key found for this signature in database
GPG Key ID: 9F2F7D8250F35146

View File

@ -113,10 +113,13 @@ in
path path
str str
]); ]);
includeType = addCheck attrs (x: (x._type or null) == "include");
in in
(oneOf [ (oneOf [
atomType atomType
(listOf atomType) (addCheck (listOf atomType) (lib.all atomType.check))
(addCheck (listOf includeType) (lib.all includeType.check))
(attrsOf type') (attrsOf type')
]) ])
// { // {