I thought I saw somewhere you could add a path fil...
# general
p
I thought I saw somewhere you could add a path filter in pants.toml for a custom python resolve instead of adding resolve= to BUILD files. Is that possible/are there docs? Maybe I'm misremembering...
c
I'm not entirely sure I understand what you're asking for. But if you want some part of your repo to use a particular resolve, you can provide a default value for the
resolve=
field on all targets using
__defaults__
. https://www.pantsbuild.org/2.20/docs/using-pants/key-concepts/targets-and-build-files#field-default-values
Copy code
__defaults__(all=dict(resolve="my-resolve"))
🔥 2
p
Not what I was thinking but that's equally as helpful
👍 1
I was thinking there was something in pants.toml like
Copy code
[myresolve]
paths = some-dir/
I might be confusing resolves with source roots 🤔