https://pantsbuild.org/ logo
g

gentle-gigabyte-52115

12/08/2022, 8:45 AM
I have been trying to adopt tailor for our project, but running into some issues configuring it. We have multiple files scattered around our monorepo that would generate targets in tailor that we don’t need. Too many to be easily configurable through
--tailor-ignore-adding-targets
as this doesn’t seem to support glob patterns. Is there any logic to prevent tailor from generating a specific target name (e.g. python_sources / python_requirements), or if there is an option to add globs to tailor-ignore-adding-targets? I have thought about adding it to pants ignore, but pants actually needs to be aware of these files outside of the tailor context.
b

broad-processor-92400

12/08/2022, 9:33 AM
Subsystems often seem to offer options to control their tailor behaviour e.g. https://www.pantsbuild.org/docs/reference-python#tailor_source_targets and following. Does that help?
g

gentle-gigabyte-52115

12/08/2022, 9:37 AM
Perfect that’s what I was looking for
h

hundreds-father-404

12/08/2022, 2:12 PM
it should be the case that every single specific tailor implementation can be disabled
3 Views