Module system types.attrTag
shadows name
argument for inner submodules
#351888
Labels
types.attrTag
shadows name
argument for inner submodules
#351888
Describe the bug
If I have an option with type
attrsOf (attrTag { ... })
, and use a submodule for the types of the tag, this submodule receives the tag name inname
, rather than the parent attribute's name.I understand this may be expected given how
submodulesWith
is defined (it has no way to know thatlast loc
is a tag name), however, unless I've missed something obvious, it means that submodules can not get access to the parent attribute's name when used in a tag type.I've tried to fix this myself but it kept breaking other things, and I haven't yet found a way to overcome this limitation/bug.
Steps To Reproduce
Expected behavior
Notify maintainers
@roberth
@infinisil
Metadata
Tested on
nixos-unstable
with Nix 2.18The text was updated successfully, but these errors were encountered: