https://pantsbuild.org/ logo
#general
Title
# general
a

abundant-analyst-12845

01/10/2023, 3:12 PM
hi is it possible to ensure
pants tailor ::
only generate BUILD files for directories mentioned within root_pattern block instead of everything
h

happy-kitchen-89482

01/10/2023, 3:30 PM
You could run
./pants tailor path/to/dir1 path/to/dir2
if that works?
a

abundant-analyst-12845

01/10/2023, 3:30 PM
i have a root pattern to
/all/projecta
so my thinking was that it would generate the BUILD files only
can we add it ti the pants.toml
got it working
added
Copy code
[tailor]
ignore_paths = [
 "all/projects/**"
]
h

happy-kitchen-89482

01/10/2023, 4:22 PM
👍