Skip to content

Commit

Permalink
chore: add subject reference into attach output
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
  • Loading branch information
qweeah committed Nov 3, 2022
1 parent 990c84f commit f9461be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/oras/attach.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ func runAttach(opts attachOptions) error {
}

fmt.Println("Attached to", opts.targetRef)
fmt.Println("Subject:", fmt.Sprintf("%s/%s@%s", dst.Reference.Registry, dst.Reference.Repository, subject.Digest))
fmt.Println("Digest:", root.Digest)

// Export manifest
Expand Down

0 comments on commit f9461be

Please sign in to comment.