I want to slowly bring pants into a monorepo. Is i...
# general
g
I want to slowly bring pants into a monorepo. Is it possible to tell pants to ignore every directory, but an explicit whitelist? I was using [tailor].ignore_paths -- but that only gets me so far and is pretty high cost to continually add ignore paths.
Ideally I'd love this
Copy code
[tailor]
ignore_paths = [
  "**/*",
  "!path/i/want",
  "!path/i/also/want",
]
b
Although that potentially has the same inverted logic issue
c
"ignore" could mean a few different things, but marker files https://www.pantsbuild.org/2.18/docs/using-pants/key-concepts/source-roots#configuring-source-roots-using-marker-files could work somewhat like an allow-list
g
Basically I want to run pants tailor check in CI, but I don't want to warn on all of the things not added.