Skip to content

build: replace existing release assets on rerun - #67

Merged
sleipi merged 1 commit into
mainfrom
chore/goreleaser-replace-artifacts
Oct 13, 2026
Merged

sleipi merged 1 commit into
mainfrom
chore/goreleaser-replace-artifacts

Conversation

@sleipi

@sleipi sleipi commented Oct 13, 2026

Copy link
Copy Markdown
Owner

A rerun of a failed release job now works without deleting the GitHub release first.

When a release fails after the assets are uploaded (as v1.1.0 and v1.2.0 did at the Homebrew cask step), a rerun stopped with 422 already_exists. With replace_existing_artifacts, goreleaser replaces the existing assets instead.

The change takes effect from the next tag on, because a rerun uses the config of the tagged commit. Checked with goreleaser check.

A release that fails after the upload step (e.g. at the Homebrew cask)
could not be rerun: goreleaser stopped with 422 already_exists because
the assets were already attached. Reruns now replace them, so the
release no longer has to be deleted first.
@sleipi sleipi added the bug Something isn't working label Oct 13, 2026
@sleipi
sleipi merged commit b04e494 into main Oct 13, 2026
7 checks passed
@sleipi
sleipi deleted the chore/goreleaser-replace-artifacts branch October 13, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant