Skip to content

gh run download fails on large artifacts due to uint32 limitation #3868

@Moisan

Description

@Moisan

Describe the bug

When trying to download large artifacts with gh run download, the command failed due to the size_in_bytes being typed as uint32. The artifacts I wanted to download were larger than the maximum value of a uint32.

Version:

gh version 1.11.0 (2021-06-03)
https://github.com/cli/cli/releases/tag/v1.11.0

Steps to reproduce the behavior

  1. Run gh run download on a pull-request with large artifacts, for example gh run download 956986699 -R homebrew/homebrew-core which matches this github Actions run.
  2. See error
error fetching artifacts: error parsing JSON: json: cannot unmarshal number 4744865688 into Go struct field Artifact.Artifacts.size_in_bytes of type uint32

Expected vs actual behavior

I would expect to be able to download artifacts of any size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionsbugSomething isn't workinghelp wantedContributions welcomepriority-3Affects a small number of users or is largely cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions