Skip to content

Commit

Permalink
pkg/remote/oci: check artifactType instead of config.mediaType
Browse files Browse the repository at this point in the history
Signed-off-by: Bjorn Neergaard <[email protected]>
  • Loading branch information
neersighted authored and ndeloof committed Sep 29, 2023
1 parent 991901f commit a6b7d78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/remote/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a6b7d78

Please sign in to comment.