bitter-ability-32190
11/12/2021, 10:06 PME ValueError: A target of type PexBinariesFromSourcesGeneratorTarget was proposed at address src/python/foo:pex_binaries with explicit sources main3.py, but this target type does not have a `sources` field.
But in src/python/pants/backend/python/target_types.py
I have:
class PexBinariesFromSourcesGeneratingSourcesField(PythonGeneratingSourcesBase):
...
class PexBinariesFromSourcesGeneratorTarget(Target):
alias = "pex_binaries_from_sources"
core_fields = (
...
PexBinariesFromSourcesGeneratingSourcesField,
)
PythonGeneratingSourcesBase
should be providing sources
, 🤔hundreds-father-404
11/12/2021, 10:10 PMpex_binary
and now pex_binaries_from_sources
really does not own the source files. That is, it's not giving metadata for those source files. That's what python_source
is for. It only is associated with those filesbitter-ability-32190
11/12/2021, 10:19 PMpython_sources
and friends are in.
Happy to hear thoughts though.hundreds-father-404
11/13/2021, 8:50 PMbitter-ability-32190
11/13/2021, 9:06 PMhundreds-father-404
11/14/2021, 1:38 AMbitter-ability-32190
11/14/2021, 8:56 PM