mirror of https://github.com/docker/compose.git
pkg/remote/oci: check artifactType instead of config.mediaType
Signed-off-by: Bjorn Neergaard <bjorn.neergaard@docker.com>
This commit is contained in:
parent
991901f2ef
commit
a6b7d78575
|
@ -118,8 +118,8 @@ func (g ociRemoteLoader) Load(ctx context.Context, path string) (string, error)
|
|||
return "", err
|
||||
}
|
||||
|
||||
if manifest.Config.MediaType != "application/vnd.docker.compose.project" {
|
||||
return "", fmt.Errorf("%s is not a compose project OCI artifact, but %s", ref.String(), manifest.Config.MediaType)
|
||||
if manifest.ArtifactType != "application/vnd.docker.compose.project" {
|
||||
return "", fmt.Errorf("%s is not a compose project OCI artifact, but %s", ref.String(), manifest.ArtifactType)
|
||||
}
|
||||
|
||||
for i, layer := range manifest.Layers {
|
||||
|
|
Loading…
Reference in New Issue