do `__defaults__` apply before or after target gen...
# general
s
do
__defaults__
apply before or after target generation? i.e. can I get away with only listing defaults for
python_source
and
python_test
, or do I need to use
(python_sources, python_source)
and
(python_tests, python_test)
to be sure I cover everything?
c
before target generation.
defaults are applied to the `TargetAdaptor`s as they are created.
you must apply defaults to the generators themselves tho
s
yeah so in my example, I need both
python_tests
and
python_test
?
c
as the defaults aren’t applied to anything not declared in the BUILD file
you need both if you use both in your BUILD file
s
👍 thanks for clarifying
👍 1
c
it is a gotcha
s