Skip to content

Commit

Permalink
Update cmd/oras/root/push.go
Browse files Browse the repository at this point in the history
Co-authored-by: Billy Zha <[email protected]>
Signed-off-by: Terry Howe <[email protected]>
  • Loading branch information
TerryHowe and qweeah authored Oct 10, 2024
1 parent 35fe5b7 commit 43fc289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/oras/root/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Example - Push file "hi.txt" into an OCI image layout folder 'layout-dir' with t
return err
}

if (opts.manifestConfigRef != "" || opts.Platform.Platform != nil) && opts.artifactType == "" {
if opts.manifestConfigRef != "" && opts.artifactType == "" {
if !cmd.Flags().Changed("image-spec") {
// switch to v1.0 manifest since artifact type is suggested
// by OCI v1.1 artifact guidance but is not presented
Expand Down

0 comments on commit 43fc289

Please sign in to comment.