Skip to content

fix(ci): surgical catalog edit in publish-catalog.sh (2-line diff)#16

Merged
ashbrener merged 2 commits into
mainfrom
fix/catalog-publish-surgical
Jun 14, 2026
Merged

fix(ci): surgical catalog edit in publish-catalog.sh (2-line diff)#16
ashbrener merged 2 commits into
mainfrom
fix/catalog-publish-surgical

Conversation

@ashbrener

Copy link
Copy Markdown
Owner

Testing the publish script against v0.3.0 surfaced a real bug: the jq re-serialize reformatted unrelated catalog entries (jq expands inline objects to its canonical 2-space form), producing a noisy diff that touches other people's entries. Replaced it with a surgical Python line-edit anchored on this repo's globally-unique download_url — rewrites only the entry's version + download_url lines.

Verified: the diff is now exactly 2 lines; re-running restored catalog PR github/spec-kit#2952 to a clean 2-line diff. shellcheck clean, JSON re-validated, the jq presence-guard kept. The same fix applies to any sibling that copies this script.

🤖 Generated with Claude Code

…the whole file

Testing publish-catalog.sh against v0.3.0 revealed that the jq re-serialize
reformatted UNRELATED entries (e.g. another extension's inline python3 block jq
expanded to multi-line) → a noisy diff touching other people's entries. Replaced
the jq-rewrite with a surgical Python line-edit anchored on this repo's unique
download_url (rewriting only its version + download_url lines), so the catalog PR
diff is a clean 2-liner. Verified: diff is exactly 2 lines; re-ran to restore
#2952's surgical diff. Keeps the jq presence-guard + JSON validation.
…rchive is HTTP-200 verified

The upstream catalog reviewer posts a generic 'verify the tag exists + archive is
reachable' advisory on every download_url bump. The script already checks the
archive returns 200 before opening the PR, so state that in the PR body — the
thread is self-resolving and a maintainer can dismiss the bot comment at a glance.
(Can't disable upstream Copilot; this just makes its one benign comment a no-op.)
@ashbrener ashbrener merged commit 9728a62 into main Jun 14, 2026
6 checks passed
@ashbrener ashbrener deleted the fix/catalog-publish-surgical branch June 14, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant