Skip to content

Fix release pipeline: GoReleaser v2 config and untagged-run guard#5

Merged
veteranbv merged 1 commit into
mainfrom
ci/goreleaser-v2-config
Jul 15, 2026
Merged

Fix release pipeline: GoReleaser v2 config and untagged-run guard#5
veteranbv merged 1 commit into
mainfrom
ci/goreleaser-v2-config

Conversation

@veteranbv

Copy link
Copy Markdown
Owner

The first manual release run failed and surfaced two issues in the pipeline:

  1. Untagged dispatch dies cryptically. Running the Release workflow directly at main (instead of via Tag Release) fails with GoReleaser's git doesn't contain any tags. A guard step now fails fast with an actionable message pointing at the Tag Release workflow.
  2. The GoReleaser config was still v1-format. v2.17 currently tolerates it with a warning (yours is version: 0), but it's slated to become fatal. Migrated: version: 2 header, archives.formatformats, archives.buildsids.

Validation: goreleaser check passes on v2.17.0 (the exact version the pinned action resolves), and a full goreleaser release --snapshot built all six platform archives locally — it even computed 1.1.0-SNAPSHOT as the next version, so the tag math is agreeing with the plan.

Also bumps actions/checkout → v5, actions/setup-go → v6, and goreleaser-action → v6 across all three workflows to clear the Node 20 deprecation warnings stamped on every run.

After this merges, the release path is: Actions → Tag Release → v1.1.0 → Run.


Generated by Claude Code

The manually dispatched release run surfaced two issues. GoReleaser
v2.17 warns that the config is version: 0 (fatal in a future release);
migrated it — version: 2 header, archives format/builds renamed to
formats/ids — and validated with goreleaser check plus a full snapshot
build of all six targets. And running the Release workflow directly at
an untagged ref died with goreleaser's cryptic "git doesn't contain any
tags"; a guard step now fails fast with a pointer to the Tag Release
workflow instead.

Also bumps checkout/setup-go/goreleaser-action to their current majors
to clear the Node 20 deprecation warnings on every run.
@veteranbv
veteranbv merged commit c261b6d into main Jul 15, 2026
4 checks passed
@veteranbv
veteranbv deleted the ci/goreleaser-v2-config branch July 15, 2026 03:37
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