https://pantsbuild.org/ logo
#general
Title
# general
c

curved-television-6568

11/25/2022, 2:41 PM
I’ve apparently not used the pants introspection features much.. is there no easy way to get the answer to: “give me all
pex_binary
targets that depends on this
python_requirement
” ? I tried
./pants dependees
(still on 2.14) but that gives me too much, and using
--filter
seems to filter my input args, not output results 😬
1
h

hundreds-father-404

11/25/2022, 2:42 PM
pipe,
./pants dependees ... | xargs ./pants --filter-target-type=x list
c

curved-television-6568

11/25/2022, 2:46 PM
aaahhh.. ok, thx 🙏 😛
❤️ 1
h

hundreds-father-404

11/25/2022, 2:48 PM
for context, someone in Slack proposed changing the input behavior to do what you originally found would be intuitive. It turns out to be super complex. What's intuitive in one case is not in the other. And changing this would make some cases not possible
💯 1
So, the proposer ended up suggesting sticking with the status quo, iirc But we could probably improve docs here
c

curved-television-6568

11/25/2022, 2:49 PM
that… worked really well. Guess the filter arg makes more sense for output than input when used on the dependencies/dependents
Ah, yes (I looked away 2 sec to get the phone, and had that typed up already.. 😛 )
But we could probably improve docs here
for me, that would not have helped in this case 😅 as I wasn’t consulting them as I “knew what I was doing”, right 😁 😬 perhaps online help on stderr in case you run the same goal over and over with empty results 😛 (no, I don’t think that’s a great idea 🤪 )