Given a target, if I get a list of Targets with Si...
# plugins
p
Given a target, if I get a list of Targets with SiblingAddresses, will the list of siblings include the original target?
Copy code
sibling_targets = await Get(
        Targets, AddressSpecs([SiblingAddresses(request.protocol_target.address)]),
    )
nevermind. Yeah, SiblingAddresses just takes the directory as a string, so it should return the protocol_target in the list.
👍 1
h
What's the use case? There's a weird nuance between BUILD targets vs file targets. I'm wondering if this will come into play here
p
I added my own
stevedore_extension
target. In a rule, I need to get all of the
stevedore_extension
targets that are in a given BUILD and then use all of them as input for GeneratedSources. Interestingly, there are no source files, so I have something similar to RelocatedFilesSources for the request.input.