Skip to content

Commit 7bbacbb

Browse files
authored
Revert "lib.types.attrsWith: remove failing test" (#382856)
2 parents 6cce8ad + bdddb0c commit 7bbacbb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/tests/modules.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,10 @@ checkConfigError 'infinite recursion encountered' config.nonLazyResult ./lazy-at
398398
checkConfigOutput '^"mergedName.<id>.nested"$' config.result ./name-merge-attrsWith-1.nix
399399
checkConfigError 'The option .mergedName. in .*\.nix. is already declared in .*\.nix' config.mergedName ./name-merge-attrsWith-2.nix
400400

401+
# Test the attrsOf functor.wrapped warning
402+
# shellcheck disable=2016
403+
NIX_ABORT_ON_WARN=1 checkConfigError 'The deprecated `type.functor.wrapped` attribute of the option `mergedLazyLazy` is accessed, use `type.nestedTypes.elemType` instead.' options.mergedLazyLazy.type.functor.wrapped ./lazy-attrsWith.nix
404+
401405
# Even with multiple assignments, a type error should be thrown if any of them aren't valid
402406
checkConfigError 'A definition for option .* is not of type .*' \
403407
config.value ./declare-int-unsigned-value.nix ./define-value-list.nix ./define-value-int-positive.nix

0 commit comments

Comments
 (0)