Skip to content

gh release download is not working for .zip and .tar.gz release assets #2167

@shiouen

Description

@shiouen

Describe the bug

For both github.com and enterprise github, I am unable to download the default .zip and .tar.gz release assets.
gh --version: gh version 1.1.0 (2020-10-06)

I first tried it on an enterprise private server and afterwards tried it on one of my own repositories.

Steps to reproduce the behavior

  1. I have the following release: https://github.com/restechnica/taskforce/releases/tag/v0.0.2
  2. I authenticated with gh auth
  3. I run gh release list
  4. I see the output 'v0.0.2 Latest (v0.0.2) about 1 month ago'
  5. I run gh release download v0.0.2
  6. I see the output 'no assets to download'

Expected vs actual behavior

I expected the default .zip and .tar.gz release assets to be downloaded.
Instead I received the output 'no assets to download'.

Logs

olivier@mbp taskforce % gh release list
v0.0.2  Latest  (v0.0.2)  about 1 month ago
olivier@mbp taskforce % gh release download v0.0.2
no assets to download

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIhelp wantedContributions welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions