fix(goreleaser): change release mode to replace for automated releases#30
fix(goreleaser): change release mode to replace for automated releases#30
Conversation
Changed from 'keep-existing' to 'replace' mode to allow GoReleaser to fully manage the release creation process. This fixes the 'immutable release' error. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #30 +/- ##
=======================================
Coverage 36.81% 36.81%
=======================================
Files 30 30
Lines 7361 7361
=======================================
Hits 2710 2710
Misses 4088 4088
Partials 563 563 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Code Review for PR #30SummaryThis PR addresses a critical issue with the GoReleaser workflow where ✅ Strengths
|
Summary
Fixes the GoReleaser configuration to prevent the "Cannot upload assets to an immutable release" error that occurred during the v1.9.5 release attempt.
Problem
When creating a release using
gh release createfirst, GitHub marks the release as immutable. GoReleaser then fails to upload assets with error 422.Solution
Changed
.goreleaser.yamlrelease configuration fromkeep-existingtoreplacemode, allowing GoReleaser to fully manage the release creation and asset uploads.Changes
release.mode:keep-existing→replacerelease.replace_existing_draft:false→trueTesting
After merging, the v1.9.6 release can be created by simply using
gh release create v1.9.6and letting GoReleaser handle everything.🤖 Generated with Claude Code