https://pantsbuild.org/ logo
w

witty-family-13337

04/11/2023, 9:28 AM
Not sure if this was discussed already so apologies ahead if so. Considering an scenario where a
GenerateSourcesRequest
like:
Copy code
class GenerateMySourcesRequest(GenerateSourcesRequest):
    input = MySourceField
    output = MyGeneratedSourceField
Should
has_field(MyGeneratedSourceField)
return
True
when invoked in the target objects that have
MySourceField
as part of their core fields? Not really interesting on addressing the field of the generated sources, just trying to figure out a way of detecting targets that may generate code for a specific source field type.
h

hundreds-father-404

04/11/2023, 3:15 PM
w

witty-family-13337

04/11/2023, 3:17 PM
just a bit of scrolling and I would have found the answer myself 🤦‍♂️