I’ve apparently not used the pants introspection f...
# general
c
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
pipe,
./pants dependees ... | xargs ./pants --filter-target-type=x list
c
aaahhh.. ok, thx 🙏 😛
❤️ 1
h
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
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 🤪 )