ambitious-student-81104
12/23/2021, 10:03 PM./pants tailor . We want to use it to check whether we have all the BUILD files and targets we need, and found 2 problems:
1. it always generates a BUILD file at the repo root, which we actually don't want; and
2. it generates a bunch of pex_binary targets which we don't need either. What are the rules that make tailor generate those pex_binary targets?enough-analyst-54434
12/23/2021, 10:18 PMhundreds-father-404
12/23/2021, 10:19 PMpex_binary with [python].tailor_pex_binary_targets = false (the subsystem is called [python-setup] in earlier Pants versions)enough-analyst-54434
12/23/2021, 10:20 PMpolite-garden-50641
12/23/2021, 10:55 PMif __name__ == "__main__": ) in them. this is done here: https://github.com/pantsbuild/pants/blob/891adbbad5be7b5dc21b2be97206e0a4cbf2ead0/src/python/pants/backend/python/goals/tailor.py#L150ambitious-student-81104
12/25/2021, 12:19 AM.py file there
2. pex binaries are generated because main are detected.
And the solution to not have any unwanted updates is to configure the tailor section in the toml file, for each of the targets.