proud-dentist-22844
05/26/2022, 9:30 PMpex_binary
targets for files that have an if __name__ = "__main__":
block. But in many cases, these are just poor-excuses for testing.
Is there a way to tell tailor to not add any pex_binary
targets? Or maybe I'm missing something - why should I let it add them?high-yak-85899
05/26/2022, 9:30 PMtailor
isn't configurable right now iirc
Edit: in terms of how it adds targets I meanwitty-crayon-22786
05/26/2022, 9:31 PMignore_paths
or ignore_adding_targets
: https://www.pantsbuild.org/docs/reference-tailor#section-ignore-pathswitty-crayon-22786
05/26/2022, 9:31 PMhigh-yak-85899
05/26/2022, 9:32 PMproud-dentist-22844
05/26/2022, 9:32 PMignore_paths
would skip writing anything in one or more BUILD files, when I'm happy to get new python_* and shell_* targets added in those.
ignore_adding_targets
might work... hmmhundreds-father-404
05/26/2022, 9:33 PMproud-dentist-22844
05/26/2022, 9:33 PMhundreds-father-404
05/26/2022, 9:33 PMproud-dentist-22844
05/26/2022, 9:33 PMhundreds-father-404
05/26/2022, 9:34 PMhelp
message for tailor
to mention this?proud-dentist-22844
05/26/2022, 9:35 PMtailor
in the pants docs, and jumped to the tailor reference: https://www.pantsbuild.org/docs/reference-tailorproud-dentist-22844
05/26/2022, 9:35 PMproud-dentist-22844
05/26/2022, 9:36 PMtailor_pex_binary_targets = false
is a beautiful thing!proud-dentist-22844
05/26/2022, 9:37 PMhundreds-father-404
05/26/2022, 9:42 PM