Skip to content

Change rawjson progress to one line per JSON record? #4769

Closed
@felixfontein

Description

This would make it easier to parse the raw JSON output, since you can simply split by newlines and feed every line into a JSON parser.

Right now the JSON output comes "nicely" formatted for human consumption, but harder to parse automatically (this was added in #4113 (comment)).

My main intention is to make this easier to parse when appearing in docker compose output (see docker/compose#11478). Since docker compose stdout output can also contain stdout from other sources than buildkit, it's a lot easier to parse stdout when every JSON record is in its own line (and just a single line).

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions