{"id":"65c476bfed39533d","repo":"docker/cli","slug":"digest-parse-of-image-q-failed-w","errorCode":null,"errorMessage":"digest parse of image %q failed: %w","messagePattern":"digest parse of image %q failed: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/command/manifest/push.go","lineNumber":164,"sourceCode":"\tif manifestRepoHostname != targetRepoHostname {\n\t\treturn manifestlist.ManifestDescriptor{}, fmt.Errorf(\"cannot use source images from a different registry than the target image: %s != %s\", manifestRepoHostname, targetRepoHostname)\n\t}\n\n\tmanifest := manifestlist.ManifestDescriptor{\n\t\tDescriptor: distribution.Descriptor{\n\t\t\tDigest:    imageManifest.Descriptor.Digest,\n\t\t\tSize:      imageManifest.Descriptor.Size,\n\t\t\tMediaType: imageManifest.Descriptor.MediaType,\n\t\t},\n\t}\n\n\tplatform := types.PlatformSpecFromOCI(imageManifest.Descriptor.Platform)\n\tif platform != nil {\n\t\tmanifest.Platform = *platform\n\t}\n\n\tif err := manifest.Descriptor.Digest.Validate(); err != nil {\n\t\treturn manifestlist.ManifestDescriptor{}, fmt.Errorf(\"digest parse of image %q failed: %w\", imageManifest.Ref, err)\n\t}\n\n\treturn manifest, nil\n}\n\nfunc buildBlobRequestList(imageManifest types.ImageManifest, repoName reference.Named) ([]manifestBlob, error) {\n\tblobs := imageManifest.Blobs()\n\tblobReqs := make([]manifestBlob, 0, len(blobs))\n\tfor _, blobDigest := range blobs {\n\t\tcanonical, err := reference.WithDigest(repoName, blobDigest)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tvar os string\n\t\tif imageManifest.Descriptor.Platform != nil {\n\t\t\tos = imageManifest.Descriptor.Platform.OS\n\t\t}\n\t\tblobReqs = append(blobReqs, manifestBlob{canonical: canonical, os: os})","sourceCodeStart":146,"sourceCodeEnd":182,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/command/manifest/push.go#L146-L182","documentation":"Error \"digest parse of image %q failed: %w\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/command/manifest/push.go:164 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"e9452d6e785f6e365712b9d71bd7517591773c86","analyzedAt":"2026-08-01T07:09:22.474Z","schemaVersion":2}