{"record":{"id":"6da7584ba266b61e","repo":"GoogleContainerTools/skaffold","slug":"getting-image-index-w","errorCode":null,"errorMessage":"getting image index: %w","messagePattern":"getting image index: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/skaffold/docker/remote.go","lineNumber":54,"sourceCode":"// for testing\nvar (\n\tRemoteDigest = getRemoteDigest\n\tremoteImage  = remote.Image\n\tremoteIndex  = remote.Index\n)\n\nfunc AddRemoteTag(src, target string, cfg Config, platforms []specs.Platform) error {\n\tlog.Entry(context.TODO()).Debugf(\"attempting to add tag %s to src %s\", target, src)\n\n\ttargetRef, err := parseReference(target, cfg, name.WeakValidation)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif len(platforms) > 1 {\n\t\tindex, err := getRemoteIndex(src, cfg)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"getting image index: %w\", err)\n\t\t}\n\t\treturn remote.WriteIndex(targetRef, index, remote.WithAuthFromKeychain(primaryKeychain))\n\t}\n\n\tvar pl v1.Platform\n\tif len(platforms) == 1 {\n\t\tpl = util.ConvertToV1Platform(platforms[0])\n\t}\n\timg, err := getRemoteImage(src, cfg, pl)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"getting image: %w\", err)\n\t}\n\n\treturn remote.Write(targetRef, img, remote.WithAuthFromKeychain(primaryKeychain))\n}\n\nfunc getRemoteDigest(identifier string, cfg Config, platforms []specs.Platform) (string, error) {\n\tidx, err := getRemoteIndex(identifier, cfg)","sourceCodeStart":36,"sourceCodeEnd":72,"githubUrl":"https://github.com/GoogleContainerTools/skaffold/blob/a1189de023efc32d4b8e11f395acc678aa555011/pkg/skaffold/docker/remote.go#L36-L72","documentation":"Fires in AddRemoteTag when copying a multi-platform tag: the source image's index (manifest list) cannot be fetched from the remote registry, so the tag cannot be re-pointed for all platforms. Wraps the remote.Index retrieval failure (auth, network, or missing image).","triggerScenarios":"Thrown at pkg/skaffold/docker/remote.go:54 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the source image exists in the registry (skopeo/crane ls or registry UI)","Check registry credentials used by skaffold match those that can read the source image","Fix network/proxy connectivity to the registry"],"exampleFix":null,"handlingStrategy":"try-catch","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"}