average-vr-56795
04/03/2020, 5:46 PMhundreds-father-404
04/03/2020, 5:49 PMpython3_library
, then calls its macro thing to convert it into another symbol python_library
, and that’s when the Target API kicks in?average-vr-56795
04/03/2020, 5:51 PMTargetMacro
ends up creating an object of a different type which can confuse things)hundreds-father-404
04/03/2020, 5:53 PMobjects
and context_aware_object_factories
or only context_aware_object_factories
?
I think I sort of get what objects
are now - a collection of values that aren’t quite targets, e.g. an Artifact
config. They can be any arbitrary class and the symbol in BUILD files is the constructoraverage-vr-56795
04/03/2020, 5:58 PMtargets
and some context_aware_object_factories
, but probably not any objects
, I think? But I’m a bit fuzzy on themhundreds-father-404
04/03/2020, 5:59 PMobjects
ties into macroswitty-crayon-22786
04/03/2020, 6:00 PMhundreds-father-404
04/03/2020, 6:00 PMwitty-crayon-22786
04/03/2020, 6:01 PMhundreds-father-404
04/03/2020, 6:02 PMcontext_aware_object_factories
, correct? And the macros can either be creating Targets (V1 or V2) and objectswitty-crayon-22786
04/03/2020, 6:02 PMhundreds-father-404
04/03/2020, 6:03 PMthey’re basically just “imports”: “put this symbol in the namespaceSure, but where it’s tricky is that
targets
and context_aware_object_factories
do the same thing of “putting this symbol in the namespace”, so that is not unique to objects
witty-crayon-22786
04/03/2020, 6:05 PMaverage-vr-56795
04/03/2020, 6:05 PMwitty-crayon-22786
04/03/2020, 6:06 PMcontext_aware_object_factories
) get a context
object that they can call to define targetshundreds-father-404
04/03/2020, 6:39 PMx = setup_py(...)
but this is not?
x = python_tests()
witty-crayon-22786
04/03/2020, 6:42 PMNone
in x
, i thinkhundreds-father-404
04/03/2020, 6:43 PMx = python-tests()
is validwitty-crayon-22786
04/03/2020, 6:43 PMpython_tests
and other targets are just top-level calls. the sideeffect is what actually does something.hundreds-father-404
04/03/2020, 6:50 PMwitty-crayon-22786
04/03/2020, 6:50 PMaverage-vr-56795
04/07/2020, 11:24 PMhappy-kitchen-89482
04/07/2020, 11:28 PMaverage-vr-56795
04/07/2020, 11:30 PMhappy-kitchen-89482
04/07/2020, 11:30 PMfancy_java_library
in practice?average-vr-56795
04/07/2020, 11:31 PMwitty-crayon-22786
04/07/2020, 11:32 PMaverage-vr-56795
04/07/2020, 11:32 PMwitty-crayon-22786
04/07/2020, 11:37 PMhappy-kitchen-89482
04/08/2020, 12:43 AM