{"id":"6cf04fcb93b6cf39","repo":"docker/cli","slug":"error-while-interpolating-s-w","errorCode":null,"errorMessage":"error while interpolating %s: %w","messagePattern":"error while interpolating (.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/compose/interpolation/interpolation.go","lineNumber":111,"sourceCode":"\t\t\tout[i] = interpolatedElem\n\t\t}\n\t\treturn out, nil\n\n\tdefault:\n\t\treturn value, nil\n\t}\n}\n\nfunc newPathError(path Path, err error) error {\n\tswitch err := err.(type) {\n\tcase nil:\n\t\treturn nil\n\tcase *template.InvalidTemplateError:\n\t\treturn fmt.Errorf(\n\t\t\t\"invalid interpolation format for %s: %#v; you may need to escape any $ with another $\",\n\t\t\tpath, err.Template)\n\tdefault:\n\t\treturn fmt.Errorf(\"error while interpolating %s: %w\", path, err)\n\t}\n}\n\nconst pathSeparator = \".\"\n\n// PathMatchAll is a token used as part of a Path to match any key at that level\n// in the nested structure\nconst PathMatchAll = \"*\"\n\n// PathMatchList is a token used as part of a Path to match items in a list\nconst PathMatchList = \"[]\"\n\n// Path is a dotted path of keys to a value in a nested mapping structure. A *\n// section in a path will match any key in the mapping structure.\ntype Path string\n\n// NewPath returns a new Path\nfunc NewPath(items ...string) Path {","sourceCodeStart":93,"sourceCodeEnd":129,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/compose/interpolation/interpolation.go#L93-L129","documentation":"Error \"error while interpolating %s: %w\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/compose/interpolation/interpolation.go:111 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}