Skip to content

revert: remove ineffective mode replace from goreleaser#38

Merged
alexandreafj merged 1 commit into
masterfrom
fix/revert-goreleaser-mode-replace
May 21, 2026
Merged

revert: remove ineffective mode replace from goreleaser#38
alexandreafj merged 1 commit into
masterfrom
fix/revert-goreleaser-mode-replace

Conversation

@alexandreafj
Copy link
Copy Markdown
Owner

@alexandreafj alexandreafj commented May 21, 2026

Summary

  • Remove mode: replace from .goreleaser.yaml — it only controls release notes behavior, not how GoReleaser handles existing releases

Context

PR #37 added mode: replace thinking it would fix the 422 Cannot upload assets to an immutable release error. It didn't — the v1.0.18 release failed identically. The actual root cause is that releases created via the GitHub UI are published (and therefore immutable) before GoReleaser runs. The fix is to push tags from CLI and let GoReleaser create the release itself.

Test plan

  • Merge this PR
  • Delete empty v1.0.18 release and its tag
  • Re-tag on merged master and push — verify workflow succeeds

🤖 Generated with Claude Code

mode: replace only controls release notes behavior, not the release
itself. The actual cause of the immutable release 422 errors is that
releases are being created via the GitHub UI before GoReleaser runs.
Reverting to let GoReleaser handle release creation end-to-end.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 21, 2026 07:14
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the GoReleaser configuration to remove mode: replace from the release configuration, aligning the repo’s release automation with the clarified understanding that the observed “immutable release” failures are driven by how releases are created (published via GitHub UI) rather than by GoReleaser’s release-notes mode setting.

Changes:

  • Remove mode: replace from .goreleaser.yaml under the release section.

@alexandreafj alexandreafj merged commit b454b62 into master May 21, 2026
1 check passed
@alexandreafj alexandreafj deleted the fix/revert-goreleaser-mode-replace branch May 21, 2026 07:19
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.

2 participants