Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah committed Dec 14, 2023
1 parent 46759a3 commit 2f65d8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/oras/internal/meta/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type pull struct {
func NewPull(digestReference string, files []File) pull {
return pull{
DigestReference: DigestReference{
Reference: digestReference,
Ref: digestReference,
},
Files: files,
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/oras/internal/meta/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ import (

// DigestReference is a reference to an artifact with digest.
type DigestReference struct {
Reference string `json:"Ref"`
Ref string `json:"Ref"`
}

// ToDigestReference converts a name and digest to a digest reference.
func ToDigestReference(name string, digest string) DigestReference {
return DigestReference{
Reference: name + "@" + digest,
Ref: name + "@" + digest,
}
}

Expand Down

0 comments on commit 2f65d8f

Please sign in to comment.