witty-crayon-22786
09/16/2021, 9:35 PM--type
arg on `dependencies`:
./pants dependencies --transitive :: | xargs ./pants filter --target-type=python_requirement_library | xargs ./pants peek | jq '.[]["requirements"][]'
witty-crayon-22786
09/16/2021, 9:36 PMdependencies --type
flaghundreds-father-404
09/16/2021, 9:38 PMwitty-crayon-22786
09/16/2021, 9:40 PMpeek
could gain the ability to render a single field, to avoid the need for jq
? a bit complicated here though because it’s a single entry list in this casewitty-crayon-22786
09/16/2021, 9:41 PMhundreds-father-404
09/16/2021, 9:48 PM./pants peek --field=requirements
. Unclear if you warn, error, or ignore when the target doesn't have that?
What if it instead filtered out all targets w/o the field, so ./pants peek --field=requirements ::
is like ./pants filter --target-type=python_requirement_library | xargs ./pants peek --field-requirements
witty-crayon-22786
09/16/2021, 9:49 PMrequirements
is a string list: if you just dump it, your output is a list of string listswitty-crayon-22786
09/16/2021, 9:49 PMjq
bitwitty-crayon-22786
09/16/2021, 9:49 PM[]
on the jq
hundreds-father-404
09/16/2021, 9:50 PM./pants peek --flatten
or ./pants peek --merge
makes sense because some fields aren't mergable, like the setup_py()
field of python_distribution
flat-zoo-31952
09/16/2021, 9:51 PMwitty-crayon-22786
09/16/2021, 9:56 PMhundreds-father-404
09/16/2021, 9:58 PM./pants help
, I think this is a great idea to fix. Don't make them figure out this incantation for req strings
--type
is so broken I don't think it's worth salvaginghundreds-father-404
09/16/2021, 9:58 PMfiledeps
and dependencies
- did y'all discuss that by chance?witty-crayon-22786
09/16/2021, 9:59 PM