https://pantsbuild.org/ logo
h

high-energy-55500

06/09/2022, 4:59 PM
hey guys, quick question regarding telling pants to ignoring certain python files: we don’t want to generate BUILD files under our root not directly under our
src/
path. if someone has some
.py
files in either of these directories and runs
pants tailor
, they’ll get added automatically, which is what we want to avoid. what’s the right option to use here/what is the effective difference between these options? https://www.pantsbuild.org/docs/reference-tailor#section-ignore-paths https://www.pantsbuild.org/docs/reference-global#section-build-ignore
h

hundreds-father-404

06/09/2022, 5:23 PM
hi! I recommend
[tailor].ignore_paths
w

witty-crayon-22786

06/09/2022, 5:23 PM
build_ignore
will prevent a file/directory from being-detected-as/containing a BUILD file, even if it exists and would otherwise match
👍 2
h

high-energy-55500

06/09/2022, 5:30 PM
sounds good, i’ll use
[tailor].ignore_paths
then 🙂
3 Views