<#19445 Unable to set `__defaults__` for a target ...
# github-notifications
c
#19445 Unable to set `__defaults__` for a target defined in an internal plugin when using environments Issue created by kevinhughes27 Describe the bug Unable to set
__defaults__
for a target defined in an internal plugin when using environments
Copy code
MappingError: Failed to parse ./BUILD:
ValueError: Unrecognized target type <custom_target> in //#__defaults__.
The same
__defaults__
can be set in other BUILD files. Environments must be defined in the root BUILD file so I suspect this is an ordering issue and the root BUILD file is parsed before loading plugins. Pants version 2.16.0rc5 I also checked 2.17.0rc1 and it has the same issue OS only tested on Linux pantsbuild/pants