is there any way to specify an address spec to cho...
# development
f
is there any way to specify an address spec to choose a particular resolve? for example, maybe something like
src/jvm::@resolve=foo
— this could select all targets at or under
src/jvm
that have
resolve=foo
context is the BSP rules and providing users with a way to select a single resolve for a BSP build target. An alternate way would be to actually examine
resolve
fields on the selected Pants targets and filter to a single resolve. But if we had an address spec syntax already, that would let me avoid having filtering code for just the BSP rules.
cc @witty-crayon-22786
h
there is not - Stu and I want to add something like
./pants --filter-field-value=resolve=python_resolve ::
, i.e. promote filter to be builtin rather than distinct goal so you don't need xargs; and add --field-value
👍 1
w
the syntax is definitely a possibility, yea. i’m starting https://github.com/pantsbuild/pants/issues/14521 today, and will try to prepare for that possibility. but in the near term,
filter
is likely to be required. we also (surprisingly!) don’t yet have a way to filter by a field value.
f
for now, I am going to have a resolve filter that is specific to the BSP targets config file.
👍 1
if there is an address spec syntax later, we can always migrate to it
w
yea, sounds reasonable.