github.com/goreleaser/goreleaser@v1.25.1/www/docs/errors/release-upload.md (about)

     1  # GitHub release upload errors
     2  
     3  Here are some common errors that might happen when releasing to GitHub, and some
     4  guidance on how to fix them.
     5  
     6  ## `Resource:ReleaseAsset Field:name Code:already_exists`
     7  
     8  This error essentially means that the file you're trying to upload is already
     9  there.
    10  
    11  It usually happens for one of these reasons:
    12  
    13  ### 1. A GitHub bug, in which it "successfully fails" to upload
    14  
    15  Meaning, it says there was an error, but on subsequent tries it replies saying
    16  the file is already there.
    17  
    18  There isn't much you can do here, except report to GitHub and maybe try to run
    19  the release from somewhere else.
    20  
    21  I already reported multiple times, but it seems themselves are having a hard
    22  time reproducing it.
    23  
    24  See also: [this](https://github.com/orgs/community/discussions/14341) and
    25  [this](https://github.com/google/go-github/issues/2113).
    26  
    27  ### 2. Your configuration is somehow creating more than one file with the same name
    28  
    29  A common one here is when your `archives.name` is not specific enough.
    30  You can run your release locally (e.g. `goreleaser release --snapshot`) and
    31  check the `./dist/*.json` files to debug.
    32  
    33  ### 3. You are running GoReleaser multiple times against the same tag
    34  
    35  This one is easier to fix: make sure you are running GoReleaser only on tags,
    36  and only one time per tag.