Skip to content

Commit a6b7d78

Browse files
neersightedndeloof
authored andcommitted
pkg/remote/oci: check artifactType instead of config.mediaType
Signed-off-by: Bjorn Neergaard <[email protected]>
1 parent 991901f commit a6b7d78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/remote/oci.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ func (g ociRemoteLoader) Load(ctx context.Context, path string) (string, error)
118118
return "", err
119119
}
120120

121-
if manifest.Config.MediaType != "application/vnd.docker.compose.project" {
122-
return "", fmt.Errorf("%s is not a compose project OCI artifact, but %s", ref.String(), manifest.Config.MediaType)
121+
if manifest.ArtifactType != "application/vnd.docker.compose.project" {
122+
return "", fmt.Errorf("%s is not a compose project OCI artifact, but %s", ref.String(), manifest.ArtifactType)
123123
}
124124

125125
for i, layer := range manifest.Layers {

0 commit comments

Comments
 (0)