mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-03 13:11:48 +02:00
docs: document release upload errors
This commit is contained in:
parent
4955e1296e
commit
bb6181c1bb
36
www/docs/errors/release-upload.md
Normal file
36
www/docs/errors/release-upload.md
Normal file
@ -0,0 +1,36 @@
|
||||
# GitHub release upload errors
|
||||
|
||||
Here are some common errors that might happen when releasing to GitHub, and some
|
||||
guidance on how to fix them.
|
||||
|
||||
## `Resource:ReleaseAsset Field:name Code:already_exists`
|
||||
|
||||
This error essentially means that the file you're trying to upload is already
|
||||
there.
|
||||
|
||||
It usually happens for one of these reasons:
|
||||
|
||||
### 1. A GitHub bug, in which it "successfully fails" to upload
|
||||
|
||||
Meaning, it says there was an error, but on subsequent tries it replies saying
|
||||
the file is already there.
|
||||
|
||||
There isn't much you can do here, except report to GitHub and maybe try to run
|
||||
the release from somewhere else.
|
||||
|
||||
I already reported multiple times, but it seems themselves are having a hard
|
||||
time reproducing it.
|
||||
|
||||
See also: [this](https://github.com/orgs/community/discussions/14341) and
|
||||
[this](https://github.com/google/go-github/issues/2113).
|
||||
|
||||
### 2. Your configuration is somehow creating more than one file with the same name
|
||||
|
||||
A common one here is when your `archives.name` is not specific enough.
|
||||
You can run your release locally (e.g. `goreleaser release --snapshot`) and
|
||||
check the `./dist/*.json` files to debug.
|
||||
|
||||
### 2. You are running GoReleaser multiple times against the same tag
|
||||
|
||||
This one is easier to fix: make sure you are running GoReleaser only on tags,
|
||||
and only one time per tag.
|
@ -147,6 +147,7 @@ nav:
|
||||
- Common errors:
|
||||
- errors/dirty.md
|
||||
- errors/multiple-tokens.md
|
||||
- errors/release-upload.md
|
||||
- errors/docker-build.md
|
||||
- errors/no-main.md
|
||||
- errors/resource-not-accessible-by-integration.md
|
||||
|
Loading…
x
Reference in New Issue
Block a user