From a6b7d7857582c6060245eb72f724864a4c114592 Mon Sep 17 00:00:00 2001 From: Bjorn Neergaard Date: Thu, 28 Sep 2023 15:09:58 -0600 Subject: [PATCH] pkg/remote/oci: check artifactType instead of config.mediaType Signed-off-by: Bjorn Neergaard --- pkg/remote/oci.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/remote/oci.go b/pkg/remote/oci.go index c43d99d03..ae0b8501a 100644 --- a/pkg/remote/oci.go +++ b/pkg/remote/oci.go @@ -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 {