query --output jsonproto produces invalid json when multiple objects are returned #19583
Labels
query bugs
Bugs related to "bazel (c)query"
team-Performance
Issues for Performance teams
type: bug
type: documentation (cleanup)
untriaged
Description of the bug:
produces json that looks like:
i.e. it produces a stream of json objects without the necessary [] wrapper to make it an array. Some tools handle this (e.g.
jq
has no problem with it) but other parsers (like python'sjson
) fail withI suspect this is the same problem as #14209
Which category does this issue belong to?
CLI
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
produces
Which operating system are you running Bazel on?
linux
What is the output of
bazel info release
?release 6.3.2
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: