fix(goreleaser): create releases as drafts to allow asset uploads#31
fix(goreleaser): create releases as drafts to allow asset uploads#31
Conversation
Changed to draft mode to prevent immutable release errors. GoReleaser will create the release as a draft, upload all assets, then the release can be published manually. 🤖 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 #31 +/- ##
=======================================
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 #31SummaryThis PR addresses the "Cannot upload assets to an immutable release" error by simplifying the GoReleaser release configuration to use draft releases. Changes AnalysisModified File: Before: release:
mode: replace
draft: false
replace_existing_draft: trueAfter: release:
draft: true✅ Strengths
🔍 Considerations & Recommendations1. Documentation Update Required
|
Summary
Fixes the persistent "Cannot upload assets to an immutable release" error by creating releases as drafts.
Problem
Even with
mode: replace, GoReleaser creates releases that become immutable before assets can be uploaded, causing 422 errors.Solution
Set
draft: truein.goreleaser.yamlso releases are created as drafts, allowing asset uploads to succeed.Workflow
🤖 Generated with Claude Code