Skip to content

Commit

Permalink
adding the changes as per billy's review
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Singh <shubhammahar1306@gmail.com>
  • Loading branch information
1Shubham7 committed Jul 20, 2023
1 parent 1373476 commit 5f1d6e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/oras/internal/option/packer.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ func (opts *Packer) LoadManifestAnnotations() (annotations map[string]map[string
if opts.AnnotationFilePath != "" {
if err = decodeJSON(opts.AnnotationFilePath, &annotations); err != nil {
return nil, fmt.Errorf("error loading manifest annotations from file %s: %w,
Refer to the document at https://oras.land/docs/how_to_guides/manifest_annotations ", opts.AnnotationFilePath, err)
refer to the document at https://oras.land/docs/how_to_guides/manifest_annotations", opts.AnnotationFilePath, err)
}

}
if len(opts.ManifestAnnotations) != 0 {
annotations = make(map[string]map[string]string)
Expand Down

0 comments on commit 5f1d6e1

Please sign in to comment.