{"record":{"id":"4b7235d1c9980782","repo":"GoogleContainerTools/skaffold","slug":"errors-wrap-err","errorCode":null,"errorMessage":"errors.Wrap(err)","messagePattern":"errors\\.Wrap\\(err\\)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/skaffold/render/applysetters/apply_setters.go","lineNumber":82,"sourceCode":"\n\t// FieldPath is field path of the matching field\n\tFieldPath string\n\n\t// Value of the matching field\n\tValue string\n}\n\n// Filter implements Set as a yaml.Filter\nfunc (as *ApplySetters) Filter(nodes []*yaml.RNode) ([]*yaml.RNode, error) {\n\tfor i := range nodes {\n\t\tfilePath, _, err := kioutil.GetFileAnnotations(nodes[i])\n\t\tif err != nil {\n\t\t\treturn nodes, err\n\t\t}\n\t\tas.filePath = filePath\n\t\terr = accept(as, nodes[i])\n\t\tif err != nil {\n\t\t\treturn nil, errors.Wrap(err)\n\t\t}\n\t}\n\treturn nodes, nil\n}\n\n// Apply Transform manifestList with Filter\nfunc (as *ApplySetters) Apply(ctx context.Context, ml manifest.ManifestList) (manifest.ManifestList, error) {\n\treader := ml.Reader()\n\tbyteReader := kio.ByteReader{Reader: reader, OmitReaderAnnotations: true}\n\tnodes, err := byteReader.Read()\n\tvar updated manifest.ManifestList\n\tif err != nil {\n\t\treturn updated, err\n\t}\n\tnodes, err = as.Filter(nodes)\n\tif err != nil {\n\t\treturn updated, err\n\t}","sourceCodeStart":64,"sourceCodeEnd":100,"githubUrl":"https://github.com/GoogleContainerTools/skaffold/blob/a1189de023efc32d4b8e11f395acc678aa555011/pkg/skaffold/render/applysetters/apply_setters.go#L64-L100","documentation":"Generic wrap in ApplySetters.Filter: applying KRM-style setters/overrides to rendered manifests failed while visiting a manifest node (pattern extraction, value setting, or parsing of a setter comment). Wraps the node-visit error without adding context — see the inner error for specifics.","triggerScenarios":"Thrown at pkg/skaffold/render/applysetters/apply_setters.go:82 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the inner error message for the failing manifest and field","Fix the setter pattern comments (e.g. ${var}) in the affected manifests or values supplied via --set-string/overrides","Ensure override values parse as valid YAML for their target node types"],"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"}