Skip to content

--clobber is being ignored when artifact has spaces in the name #7024

@Xottab-DUTY

Description

@Xottab-DUTY

Describe the bug

  1. My artifact is named as Symbols.Mixed 64-bit.7z
  2. GitHub renames or wants to rename it to Symbols.Mixed.64-bit.7z (space replaced with a dot)
  3. There is already an artifact named Symbols.Mixed.64-bit.7z.
  4. Upload fails with:
HTTP 422: Validation Failed (https://uploads.github.com/repos/<organization>/<repo>/releases/<id>/assets?label=&name=Symbols.Mixed+64-bit.7z)
ReleaseAsset.name already exists

Steps to reproduce the behavior

  1. Try to upload an artifact via gh release upload --clobber latest-nightly "Symbols.Mixed 64-bit.7z"

Expected vs actual behavior

--clobber works for artifacts with spaces in names

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedContributions welcomepriority-2Affects more than a few users but doesn't prevent core functions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions