fix(release): make release.sh survive tag.gpgsign and a missing forge release #104

Merged
hexajon merged 1 commit from refs/pull/104/head into main 2026-07-15 16:05:21 +00:00
hexajon commented 2026-07-15 16:05:12 +00:00 (Migrated from codeberg.org)

Summary

Two release.sh bugs stranded v0.15.1 half-cut (tag pushed, no release):

  1. forge_release_exists checked madtea api's exit code, but the api passthrough exits 0 even on HTTP 404 (error JSON on stdout) — so the check was always-true and goreleaser was skipped for a release that didn't exist. Switched to madtea release get, which exits nonzero when the release is missing (verified: missing→1, existing→0).

  2. git tag "$tag" (lightweight) dies non-interactively with fatal: no tag message? under the repo-local tag.gpgsign=true added after v0.15.0, because signing forces an annotated tag that demands a message. Now creates the tag with -m "$tag".

The madtea api exit-0-on-HTTP-error behavior itself is a CLI bug (gh api exits 1); filed separately.

## Summary Two release.sh bugs stranded v0.15.1 half-cut (tag pushed, no release): 1. `forge_release_exists` checked `madtea api`'s exit code, but the api passthrough exits 0 even on HTTP 404 (error JSON on stdout) — so the check was always-true and goreleaser was skipped for a release that didn't exist. Switched to `madtea release get`, which exits nonzero when the release is missing (verified: missing→1, existing→0). 2. `git tag "$tag"` (lightweight) dies non-interactively with `fatal: no tag message?` under the repo-local `tag.gpgsign=true` added after v0.15.0, because signing forces an annotated tag that demands a message. Now creates the tag with `-m "$tag"`. The `madtea api` exit-0-on-HTTP-error behavior itself is a CLI bug (gh api exits 1); filed separately.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sixfold-space/madtea!104
No description provided.