Is there anyway to prevent shunit2_tests targets f...
# general
g
Is there anyway to prevent shunit2_tests targets from being added by tailor. globally? I want to avoid adding each exclude to
[tailor].ignore_adding_targets
f
from https://www.pantsbuild.org/2.19/reference/goals/tailor:
Each specific
tailor
implementation may be disabled through language-specific options, e.g.
[python].tailor_pex_binary_targets
and
[shell-setup].tailor
.
reveals https://www.pantsbuild.org/2.19/reference/subsystems/shell-setup#tailor which will turn off tailor for the entire shell backend (so not quite what you want)
👀 1
g
I want
shell_sources
,but I don't want
shunit2_tests
🙂
f
yeah it is inconsistent with how the Python backend defines them per group of targets: e.g. https://www.pantsbuild.org/2.19/reference/subsystems/python#tailor_requirements_targets
👍 1
b
Do you wanna file a feature request and or a PR with an improvement to make the
tailor
option more fine-grained? Happy to help guide you how to do this!
👍 1
(if you do jump in, we should either retain
tailor
as a catch-all, or deprecate it, rather than remove outright 🙂 )
g