https://pantsbuild.org/ logo
#development
Title
# development
f

fast-nail-55400

03/29/2022, 1:38 PM
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

hundreds-father-404

03/29/2022, 1:57 PM
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

witty-crayon-22786

03/29/2022, 5:04 PM
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

fast-nail-55400

03/29/2022, 5:07 PM
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

witty-crayon-22786

03/29/2022, 5:08 PM
yea, sounds reasonable.