{"record":{"id":"fa156d49e0565814","repo":"GoogleContainerTools/skaffold","slug":"failed-to-interpret-q-as-image-v","errorCode":null,"errorMessage":"failed to interpret %q as image: %v","messagePattern":"failed to interpret %q as image: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/skaffold/docker/platform.go","lineNumber":62,"sourceCode":"\tcase types.OCIImageIndex, types.DockerManifestList:\n\t\tix, ok := i.(v1.ImageIndex)\n\t\tif !ok {\n\t\t\treturn nil, fmt.Errorf(\"failed to interpret %q as index: %v\", image, i)\n\t\t}\n\t\tmanifests, err := ix.IndexManifest()\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tfor _, m := range manifests.Manifests {\n\t\t\tif m.Platform == nil || m.Platform.Architecture == \"unknown\" || m.Platform.OS == \"unknown\" {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tp = append(p, util.ConvertFromV1Platform(*m.Platform))\n\t\t}\n\tcase types.OCIManifestSchema1, types.DockerManifestSchema2:\n\t\tim, ok := i.(v1.Image)\n\t\tif !ok {\n\t\t\treturn nil, fmt.Errorf(\"failed to interpret %q as image: %v\", image, im)\n\t\t}\n\t\tcf, err := im.ConfigFile()\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tp = append(p, spec.Platform{OS: cf.OS, Architecture: cf.Architecture})\n\tdefault:\n\t\treturn nil, fmt.Errorf(\"image media type: %s\", mt)\n\t}\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn p, nil\n}\n\nfunc getImage(image string) (ImageRef, error) {\n\tref, err := name.ParseReference(image, name.WeakValidation)\n\tif err != nil {","sourceCodeStart":44,"sourceCodeEnd":80,"githubUrl":"https://github.com/GoogleContainerTools/skaffold/blob/a1189de023efc32d4b8e11f395acc678aa555011/pkg/skaffold/docker/platform.go#L44-L80","documentation":"Fires in GetPlatforms when the media type indicates a single image manifest (OCI schema1/Docker schema2) but the object cannot be asserted to the Image interface — an internal type-assertion failure in go-containerregistry image handling, not a user config error.","triggerScenarios":"Thrown at pkg/skaffold/docker/platform.go:62 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-pull or re-push the image to rule out a corrupted registry artifact","Rebuild the image with current tooling","Report to skaffold maintainers with the image reference if persistent"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a1189de023efc32d4b8e11f395acc678aa555011","analyzedAt":"2026-09-05T12:09:27.064Z","contentChangedAt":"2026-09-05T12:09:27.064Z","schemaVersion":2},"datasetVersion":"2026-09-12T17:17:11.597Z"}