Skip to content

Commit

Permalink
consistent default media type (#271)
Browse files Browse the repository at this point in the history
Signed-off-by: Shiwei Zhang <[email protected]>
  • Loading branch information
shizhMSFT authored May 18, 2021
1 parent c9d1b33 commit e85f6b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/oras/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"os"
"path/filepath"

"github.com/oras-project/oras-go/pkg/artifact"
"github.com/oras-project/oras-go/pkg/content"
ctxo "github.com/oras-project/oras-go/pkg/context"
"github.com/oras-project/oras-go/pkg/oras"
Expand Down Expand Up @@ -110,7 +111,7 @@ func runPush(opts pushOptions) error {
}
}
if opts.manifestConfigRef != "" {
filename, mediaType := parseFileRef(opts.manifestConfigRef, ocispec.MediaTypeImageConfig)
filename, mediaType := parseFileRef(opts.manifestConfigRef, artifact.UnknownConfigMediaType)
file, err := store.Add(annotationConfig, mediaType, filename)
if err != nil {
return err
Expand Down

0 comments on commit e85f6b7

Please sign in to comment.