From 8aa6e3dbb9761e1a8f07c705aa76d7a0b81d8a50 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Mon, 4 May 2026 17:08:18 +0200 Subject: [PATCH] types.attrListWith: add valueMeta.definitions --- lib/tests/modules.sh | 3 ++ ...definitions-file-diagnostic-forwarding.nix | 25 +++++++++ lib/tests/modules/declare-attrList.nix | 54 +++++++++++++++++++ lib/types.nix | 11 +++- 4 files changed, 92 insertions(+), 1 deletion(-) create mode 100644 lib/tests/modules/attrList-valueMeta-definitions-file-diagnostic-forwarding.nix diff --git a/lib/tests/modules.sh b/lib/tests/modules.sh index ac9cc83030d5..c7b661e2e2fe 100755 --- a/lib/tests/modules.sh +++ b/lib/tests/modules.sh @@ -906,6 +906,9 @@ checkConfigError 'A definition for option .attrList.badListElem. is not of type checkConfigError 'A definition for option .attrList.badString. is not of type .attribute list of string.. TypeError: Definition values:' config.attrListStrict.badString ./declare-attrList.nix checkConfigError 'A definition for option .attrList.badListString. is not of type .attribute list of string.. Each list element must be a single-key attribute set.' config.attrListStrict.badListString ./declare-attrList.nix +# attrListWith valueMeta.definitions: file propagation +checkConfigError 'the-defs-file\.nix' config.argv ./attrList-valueMeta-definitions-file-diagnostic-forwarding.nix + cat <