Răsfoiți Sursa

pkg/remote/oci: check artifactType instead of config.mediaType

Signed-off-by: Bjorn Neergaard <[email protected]>
Bjorn Neergaard 2 ani în urmă
părinte
comite
a6b7d78575
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      pkg/remote/oci.go

+ 2 - 2
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 {