Skip to main content
← Back to list
01Issue
BugOpenSwamp CLIPublic
AssigneesNone

Relationships

#4011 doctor datastores --repair --json prints two JSON documents instead of one

Opened by zack · 10/27/2026

Description

swamp doctor datastores --repair --json writes one JSON object per repair stage to stdout, back to back, so the output is not a single JSON document and a plain JSON parser (jq -s aside) fails on it.

Steps to reproduce

  1. In any repo with a filesystem datastore, run: swamp doctor datastores --repair -y --json

  2. Output:

    { "status": "catalog_not_needed" } { "status": "duplicate_latest_not_needed" }

Expected

One JSON document, for example an object holding each repair stage's result, so --json output can be parsed as JSON like every other command.

Environment

  • swamp 20261027.134600.0-sha.df363676
  • Found while reproducing swamp-club#3955
02Bog Flow
◉OPEN○TRIAGED○IN PROGRESS○SHIPPED

Open

10/27/2026, 2:34:51 PM

No activity in this phase yet.

03Sludge Pulse

Sign in to post a ripple.