Skip to content

fix(release): pin GORELEASER_CURRENT_TAG to the triggering tag - #58

Merged
min0625 merged 1 commit into
mainfrom
fix/goreleaser-current-tag
Jul 13, 2026
Merged

min0625 merged 1 commit into
mainfrom
fix/goreleaser-current-tag

Conversation

@min0625

@min0625 min0625 commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Why

The v0.0.1 release run (29241194810) failed: v0.0.1 was tagged on the same commit as v0.0.1-beta.8, and GoReleaser's tag auto-detection picked v0.0.1-beta.8 as the current tag. It then tried to upload assets to the existing beta.8 release and every upload failed with 422 already_exists.

What

Set GORELEASER_CURRENT_TAG: ${{ github.ref_name }} in the release workflow so GoReleaser always releases the tag that triggered the run, regardless of how many tags point at the commit.

🤖 Generated with Claude Code

When two tags point at the same commit (v0.0.1 tagged on the
v0.0.1-beta.8 commit), GoReleaser auto-detected v0.0.1-beta.8 as the
current tag and tried to re-upload assets to the existing beta.8
release, failing with 422 already_exists. Pin the tag from github.ref_name
so the release always targets the tag that triggered the workflow.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@min0625
min0625 merged commit 74db69a into main Jul 13, 2026
9 checks passed
@min0625
min0625 deleted the fix/goreleaser-current-tag branch July 13, 2026 10:22
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