Is there a way to "inject" dependencies in a taget...
# general
b
Is there a way to "inject" dependencies in a taget's constructor ? I tried this :
Copy code
class MyLibrary(JvmTarget):
    
    def __init__(self,
                 payload=None,
                 spec=None,
                 **kwargs):
        payload = payload or Payload()
        payload.add_fields({
            'spec': PrimitiveField(spec),
            })

        if spec:
            self.inject_dependency(Address.parse(spec))

        super(ControllersLibrary, self).__init__(payload=payload,
                                                 **kwargs)
But I run into
'MyLibrary'  object has no attribute '_build_graph'
e
b
nice ! once again, thank you