{"id":"ced04d3330890c9d","repo":"docker/cli","slug":"failed-to-assemble-manifestdescriptor-w","errorCode":null,"errorMessage":"failed to assemble ManifestDescriptor: %w","messagePattern":"failed to assemble ManifestDescriptor: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/command/manifest/inspect.go","lineNumber":122,"sourceCode":"\t}\n\tjsonBytes, err := json.MarshalIndent(manifest, \"\", \"\\t\")\n\tif err != nil {\n\t\treturn err\n\t}\n\t_, _ = dockerCli.Out().Write(append(jsonBytes, '\\n'))\n\treturn nil\n}\n\nfunc printManifestList(dockerCli command.Cli, namedRef reference.Named, list []types.ImageManifest, opts inspectOptions) error {\n\tif !opts.verbose {\n\t\ttargetRepo := reference.TrimNamed(namedRef)\n\n\t\tmanifests := make([]manifestlist.ManifestDescriptor, 0, len(list))\n\t\t// More than one response. This is a manifest list.\n\t\tfor _, img := range list {\n\t\t\tmfd, err := buildManifestDescriptor(targetRepo, img)\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"failed to assemble ManifestDescriptor: %w\", err)\n\t\t\t}\n\t\t\tmanifests = append(manifests, mfd)\n\t\t}\n\t\tdeserializedML, err := manifestlist.FromDescriptors(manifests)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjsonBytes, err := deserializedML.MarshalJSON()\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, _ = fmt.Fprintln(dockerCli.Out(), string(jsonBytes))\n\t\treturn nil\n\t}\n\tjsonBytes, err := json.MarshalIndent(list, \"\", \"\\t\")\n\tif err != nil {\n\t\treturn err\n\t}","sourceCodeStart":104,"sourceCodeEnd":140,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/command/manifest/inspect.go#L104-L140","documentation":"Error \"failed to assemble ManifestDescriptor: %w\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/command/manifest/inspect.go:122 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}