hundreds-father-404
05/27/2020, 6:22 AM@rule
async def transitive_target(wrapped_root: WrappedTarget) -> TransitiveTarget:
root = wrapped_root.target
if not root.has_field(Dependencies):
return TransitiveTarget(root, ())
dependency_addresses = await Get[Addresses](DependenciesRequest(root[Dependencies]))
Unregistering the protobuf rule fixes it all.enough-analyst-54434
05/27/2020, 3:07 PMhundreds-father-404
05/27/2020, 3:10 PMenough-analyst-54434
05/27/2020, 3:30 PMroot[Dependencies]
legit? I though Dependencies were async now and had to be awaited.hundreds-father-404
05/27/2020, 3:31 PMroot[Dependencies]
gets the Dependencies
field, which stores a sanitized_raw_value
. Then, you say await Get[Addresses](DependenciesRequest(dependencies_field))
enough-analyst-54434
05/27/2020, 3:31 PMhundreds-father-404
05/27/2020, 3:32 PMsanitized_raw_value
is a Tuple[Address, ...]
because of the @addressable
mechanismhundreds-father-404
05/27/2020, 3:39 PMawait Get
is being satisfied some other way