Skip to content

fix: write updater JSON with tabs to match repo style#89

Merged
skjnldsv merged 1 commit into
mainfrom
fix/updater-json-tabs
Jun 8, 2026
Merged

fix: write updater JSON with tabs to match repo style#89
skjnldsv merged 1 commit into
mainfrom
fix/updater-json-tabs

Conversation

@skjnldsv

@skjnldsv skjnldsv commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Problem

The updater_server PRs (e.g. nextcloud-releases/updater_server#1380) reindented config/releases.json from tabs to 2 spaces — jq defaults to 2-space output, and update-updater-server.sh rewrites the whole file with jq. Result: a noisy whole-file diff and a style mismatch (the repo uses tabs).

Fix

Add --tab to the jq calls that write config/releases.json and config/major_versions.json. Output now matches the tab-indented source.

Updater test snapshots regenerated (they already used a tab-indented base fixture; the expected files were the only thing carrying the 2-space output).

Testing

  • bash tests/updater-script/run.sh → 8/8 pass
  • shellcheck clean
  • Verified regenerated expected/config/releases.json are tab-indented

jq defaults to two-space indentation, so the generated config/releases.json
and config/major_versions.json in the updater_server PR came out
space-indented while the repo uses tabs - producing a noisy, whole-file
reindent diff.

Pass --tab to the jq calls that write those files. Regenerate the updater
test snapshots accordingly (they now match the tab-indented base fixture).

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@skjnldsv skjnldsv added the bug Something isn't working label Jun 8, 2026
@skjnldsv skjnldsv merged commit f4d07eb into main Jun 8, 2026
1 check passed
@skjnldsv skjnldsv deleted the fix/updater-json-tabs branch June 8, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Development

Successfully merging this pull request may close these issues.

1 participant