Skip to content

improve error message when no tag or digest provided #1211

Closed

Description

@qweeah

Current behavior and output:

$ oras manifest fetch --oci-layout /tmp/ginkgo1163328512
Error: "/tmp/ginkgo1163328512": no tag or digest when expecting <name:tag|name@digest>

Suggested error message:

$ oras manifest fetch --oci-layout /tmp/ginkgo1163328512
Error: "/tmp/ginkgo1163328512": no tag or digest specified
Usage: oras manifest fetch [flags] <name>{:<tag>|@<digest>}
You need to specify an artifact reference in the form of "<name>:<tag>" or "<name>@<digest>". Run "oras manifest fetch -h" for more options and examples 

Activity

  1. added
    ux
    on Dec 26, 2023
  2. added this to the v1.2.0 milestone on Dec 26, 2023
  3. wangxiaoxuan273 commented on Jan 8, 2024

    @wangxiaoxuan273
    Contributor

    I would like to work on this issue.

  4. changed the title [-]improve error message when no tag or digest provided when fetching a manifest[/-] [+]improve error message when no tag or digest provided[/+] on Jan 8, 2024
  5. qweeah commented on Jan 8, 2024

    @qweeah
    ContributorAuthor

    This change can also be applied to

    • oras attach
    • oras cp
    • oras discover
    • oras pull
    • oras resolve
    • oras delete
    • oras tag
    • oras manifest delete
    • oras blob delete (please be aware that there is not tag in the hint)
    • oras manifest fetch-config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ux

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions