You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ oras attach --artifact-type sbom/example localhost:5000/sample/images:foobarError: no blob is provided
Suggested error message:
$ oras attach --artifact-type sbom/example localhost:5000/sample/images:foobarError: neither file nor annotation provided in the commandUsage: oras attach [flags] --artifact-type=<type> <name>{:<tag>|@<digest>} <file>[:<type>] [...]To attach to an existing artifact, please provide files via argument or annotations via flag "--annotation". Run "oras attach -h" for more options and examples
If the provided annotation file is invalid
Current behavior and output:
$ oras push --annotation-file sbom.json ghcr.io/library/alpine:3.9Error: failed to load annotations from sbom.json: json: cannot unmarshal string into Go value of type map[string]map[string]string. Please refer to the document at https://oras.land/docs/how_to_guides/manifest_annotations
Suggested error message:
$ oras push --annotation-file annotation.json ghcr.io/library/alpine:3.9Error: invalid annotation json file: failed to load annotations from annotation.json.Annotation file doesn't match the required format. Please refer to the document at https://oras.land/docs/how_to_guides/manifest_annotations
The text was updated successfully, but these errors were encountered:
qweeah
changed the title
improve error message when attaching with invalid annotation file
improve error message when attaching with invalid input
Dec 26, 2023
if no file or annotation is provided
Suggested error message:
If the provided annotation file is invalid
Current behavior and output:
Suggested error message:
The text was updated successfully, but these errors were encountered: