cool-easter-32542
04/25/2024, 6:49 AMpants dependencies --output-file=dependencies.json --format=json ... should output dependencies to the specified file. It currently just prints to the console.
Pants version
v2.20
OS
both
Additional info
Looks like dependents is also impacted by this bug. The fix looks simple enough. In list_dependencies_as_json and list_dependents_as_json we should replace
console.print_stdout(output)
with
with dependents_subsystem.line_oriented(console) as print_stdout:
print_stdout(output)
I can put together a PR for this.
pantsbuild/pantscool-easter-32542
04/26/2024, 6:07 AM