In the docs <here>, I see: You can refer to this ...
# general
p
In the docs here, I see: > You can refer to this target with either
helloworld/greet:greet
or the abbreviated form
helloworld/greet
. Is the implication that any
abc/t:t
can be abbreviated to
abc/t
? If so, then I'm running into an issue where that doesn't seem to be working the way I would expect:
Copy code
> pants run experiments/e2024_04_19

TooManyTargetsException: The `run` goal only works with one valid target, but was given multiple valid targets:

  * experiments/e2024_04_19/questions.py:sources
  * experiments/e2024_04_19/schemas.py:sources
  * experiments/e2024_04_19:e2024_04_19
I would have expected the final target to run. What am I missing?
g
They don't seem to have the same name. I.e., in your case it's
abc/t:t_qualcomm
which isn't
t:t
?
p
ah, in my real example the do have the same name – I meant to remove _q......m from that example. Editing the above to reflect the real example.
b
I think this behaviour changed in Pants 2.13, and that line of docs was missed:
abc/t
is now equivalent to
abc/t:
(= all targets within
t
). Would you like to submit a pull request that removes the now-incorrect β€œor abbreviated form …” phrase? Thanks!
p