From 2d791b5f7b6575f2153f5971a2046bec15f637f7 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Thu, 4 Apr 2024 11:45:03 +0200 Subject: types.attrTag: Remove substSubmodules I haven't managed to trigger the error, and it turns out that this method is optional. Specifically, getSubmodules is unimplemented (and unimplementable), the tests pass, and we seem to have good location info. --- lib/types.nix | 9 --------- 1 file changed, 9 deletions(-) (limited to 'lib') diff --git a/lib/types.nix b/lib/types.nix index 2e44dd5472ee..694e800f5092 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -662,15 +662,6 @@ rec { }; }) tags; - substSubModules = m: - attrTag - (mapAttrs - (n: opt: - opt // { - type = (opt.type or types.unspecified).substSubModules m; - } - ) - tags); check = v: isAttrs v && length (attrNames v) == 1 && tags?${head (attrNames v)}; merge = loc: defs: let -- cgit v1.2.3