Commit ecbc533
Let a release retry overwrite the assets it already uploaded (#9)
The v0.2.0 retry got past the tap credentials and then died on the upload:
upload failed error=POST .../releases/385736691/assets?name=modelslab_0.2.0_linux_arm64.tar.gz:
422 Validation Failed [{Resource:ReleaseAsset Field:name Code:already_exists}]
...once for each of the 11 assets the first, half-failed run had already
attached, and npm and PyPI were skipped again behind it.
`release.mode: replace` was the wrong lever. It governs the release NOTES; it
says nothing about artifacts. `replace_existing_artifacts` is the half that
overwrites them, and without it no retry of a run that got as far as uploading
can ever succeed — which is exactly the situation the retry exists for.
Verified locally end to end against a snapshot build: goreleaser check passes,
6 binaries collected (the count the workflow asserts), packaging/npm/build.mjs
produces the 6 platform packages plus the entry package pinning them, and
packaging/pypi/build.py produces the 6 wheels, all stamped 0.2.0.
Claude-Session: https://claude.ai/code/session_01QgkQePXPha8ShvoBerrVXL
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 4aec03c commit ecbc533
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| |||
0 commit comments