From 39c6f3b2ea5cfecb796b5deb601a5a466ca195fc Mon Sep 17 00:00:00 2001 From: Andrei Varabyeu Date: Wed, 25 Nov 2026 11:14:22 +0100 Subject: [PATCH] Make goreleaser re-runs idempotent with replace_existing_artifacts Co-Authored-By: Claude Sonnet 5.5 --- .goreleaser.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 1b42bc9..e37f55b 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -32,4 +32,9 @@ changelog: - '^test:' env_files: # use only one or release will fail! - github_token: ~/.goreleaser/github \ No newline at end of file + github_token: ~/.goreleaser/github + +release: + # Make re-runs (e.g. local `task release` after the CI job, or a CI retry) idempotent: + # existing assets with the same name are replaced instead of failing with 422 already_exists. + replace_existing_artifacts: true