ancient-rose-27306
01/12/2023, 5:54 PMTree of: /root/project
.
|__apps
| |__app1
| |__app2
| |__app3
And I have the root_patterns
declared as:
[source]
root_patterns = [
"/apps/app2",
"/apps/app3",
]
But the command ./pants tailor ::
is generating BUILD
files in apps/app1
too. I don’t want that to happen. Could anyone please help?enough-analyst-54434
01/12/2023, 5:58 PMenough-analyst-54434
01/12/2023, 6:00 PMancient-rose-27306
01/12/2023, 7:11 PMpants.toml
file:
[tailor]
ignore_paths = [
"/apps/app1",
]
But it threw an error that said:
ValueError: Absolute paths not supported: "/apps/app1"
happy-kitchen-89482
01/12/2023, 7:23 PMancient-rose-27306
01/12/2023, 7:24 PMapps/app1/**
and the tailor
goal worked as intended.ancient-rose-27306
01/12/2023, 7:25 PMabundant-analyst-12845
01/13/2023, 6:41 PM[GLOBAL]
pants_ignore.add = [
"/folder-to-ignore",
"/file_to_ignore.txt",
"/another_file_to_ignore.py",
]
with this I was able to remove the [tailo[
block