{"record":{"id":"5f730aab355451ba","repo":"GoogleContainerTools/skaffold","slug":"transforming-manifests-w","errorCode":null,"errorMessage":"transforming manifests: %w","messagePattern":"transforming manifests: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/skaffold/app/cmd/filter.go","lineNumber":133,"sourceCode":"\t\t}\n\n\t\tif debuggingFilters {\n\t\t\t// TODO(bdealwis): refactor this code\n\t\t\tdebugHelpersRegistry, err := config.GetDebugHelpersRegistry(opts.GlobalConfig)\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"resolving debug helpers: %w\", err)\n\t\t\t}\n\t\t\tinsecureRegistries, err := getInsecureRegistries(opts, configs)\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"retrieving insecure registries: %w\", err)\n\t\t\t}\n\n\t\t\tmanifestList, err = debugging.ApplyDebuggingTransforms(manifestList, buildArtifacts, manifest.Registries{\n\t\t\t\tDebugHelpersRegistry: debugHelpersRegistry,\n\t\t\t\tInsecureRegistries:   insecureRegistries,\n\t\t\t})\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"transforming manifests: %w\", err)\n\t\t\t}\n\t\t}\n\t\tout.Write([]byte(manifestList.String()))\n\t\treturn nil\n\t})\n}\n\nfunc getTransformList(configs []util.VersionedConfig) (map[apim.GroupKind]latest.ResourceFilter, map[apim.GroupKind]latest.ResourceFilter) {\n\t// TODO: remove code duplication by adding a new Filter method to the runner.\n\t// and reuse renderer/util.ConsolidateTransformConfiguration\n\n\tallow := manifest.TransformAllowlist\n\tdeny := manifest.TransformDenylist\n\n\t// add default values\n\tfor _, rf := range manifest.TransformAllowlist {\n\t\tgroupKind := apim.ParseGroupKind(rf.GroupKind)\n\t\tallow[groupKind] = rUtil.ConvertJSONPathIndex(rf)","sourceCodeStart":115,"sourceCodeEnd":151,"githubUrl":"https://github.com/GoogleContainerTools/skaffold/blob/a1189de023efc32d4b8e11f395acc678aa555011/cmd/skaffold/app/cmd/filter.go#L115-L151","documentation":"Wraps a failure from debugging.ApplyDebuggingTransforms on the loaded manifest list. It means the debugging transform (injecting debug helpers, rewriting registries) could not be applied to the manifests.","triggerScenarios":"debuggingFilters is enabled, and after resolving registries, ApplyDebuggingTransforms(manifestList, buildArtifacts, manifest.Registries{...}) returns an error, wrapped at filter.go:133.","commonSituations":"Manifests lack expected metadata for debug injection, image names cannot be rewritten to the debug-helpers registry, or build artifacts mismatch the manifest images.","solutions":["Check the wrapped error for which manifest/image failed transformation","Ensure manifest images match the provided build artifacts","Verify the debug-helpers registry is reachable and image names are rewriteable","Re-run with debug logging to see the failing transform"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"if err != nil {\n    return fmt.Errorf(\"transforming manifests: %w\", err)\n}\n// caller: inspect wrapped cause; verify image names vs build artifacts before retrying","preventionTips":["Ensure manifest image names match build artifact image names","Use a reachable debug-helpers registry","Test debugging transforms on a small manifest set first"],"tags":["cli","manifests","debugging","transform"],"backgroundTag":"manifest-transform-failed","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"}