{"id":"dde2e4022acd56d7","repo":"docker/cli","slug":"annotate-error-parsing-name-for-manifest-list-s","errorCode":null,"errorMessage":"annotate: error parsing name for manifest list %s: %w","messagePattern":"annotate: error parsing name for manifest list (.+?): %w","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/command/manifest/annotate.go","lineNumber":128,"sourceCode":"\t\t},\n\t\tDisableFlagsInUseLine: true,\n\t}\n\n\tflags := cmd.Flags()\n\n\tflags.StringVar(&opts.os, \"os\", \"\", \"Set operating system\")\n\tflags.StringVar(&opts.arch, \"arch\", \"\", \"Set architecture\")\n\tflags.StringVar(&opts.osVersion, \"os-version\", \"\", \"Set operating system version\")\n\tflags.StringSliceVar(&opts.osFeatures, \"os-features\", []string{}, \"Set operating system feature\")\n\tflags.StringVar(&opts.variant, \"variant\", \"\", \"Set architecture variant\")\n\n\treturn cmd\n}\n\nfunc runManifestAnnotate(dockerCLI command.Cli, opts annotateOptions) error {\n\ttargetRef, err := normalizeReference(opts.target)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"annotate: error parsing name for manifest list %s: %w\", opts.target, err)\n\t}\n\timgRef, err := normalizeReference(opts.image)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"annotate: error parsing name for manifest %s: %w\", opts.image, err)\n\t}\n\n\tmanifestStore := newManifestStore(dockerCLI)\n\timageManifest, err := manifestStore.Get(targetRef, imgRef)\n\tswitch {\n\tcase errdefs.IsNotFound(err):\n\t\treturn fmt.Errorf(\"manifest for image %s does not exist in %s\", opts.image, opts.target)\n\tcase err != nil:\n\t\treturn err\n\t}\n\n\t// Update the mf\n\tif imageManifest.Descriptor.Platform == nil {\n\t\timageManifest.Descriptor.Platform = new(ocispec.Platform)","sourceCodeStart":110,"sourceCodeEnd":146,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/command/manifest/annotate.go#L110-L146","documentation":"Error \"annotate: error parsing name for manifest list %s: %w\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/command/manifest/annotate.go:128 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}