{"record":{"id":"d55d4dde725ced5f","repo":"GoogleContainerTools/skaffold","slug":"input-to-array-setter-must-be-an-array-of-values","errorCode":null,"errorMessage":"input to array setter must be an array of values, but found %q","messagePattern":"input to array setter must be an array of values, but found %q","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/skaffold/render/applysetters/apply_setters.go","lineNumber":209,"sourceCode":"\t\tif sv == \"\" {\n\t\t\tnode.Value.YNode().Content = []*yaml.Node{}\n\t\t\t// empty sequence must be FlowStyle e.g. env: [] # from-param: ${env}\n\t\t\tnode.Value.YNode().Style = yaml.FlowStyle\n\t\t\t// setter pattern comment must be on value node\n\t\t\tnode.Value.YNode().LineComment = lineComment\n\t\t\tnode.Key.YNode().LineComment = \"\"\n\t\t\tas.Results = append(as.Results, &Result{\n\t\t\t\tFilePath:  as.filePath,\n\t\t\t\tFieldPath: fieldPath,\n\t\t\t\tValue:     sv,\n\t\t\t})\n\t\t\treturn nil\n\t\t}\n\n\t\t// parse the setter value as yaml node\n\t\trn, err := yaml.Parse(sv)\n\t\tif err != nil {\n\t\t\treturn errors.Errorf(\"input to array setter must be an array of values, but found %q\", sv)\n\t\t}\n\n\t\t// the setter value must parse as sequence node\n\t\tif rn.YNode().Kind != yaml.SequenceNode {\n\t\t\treturn errors.Errorf(\"input to array setter must be an array of values, but found %q\", sv)\n\t\t}\n\n\t\tnode.Value.YNode().Content = rn.YNode().Content\n\t\tnode.Key.YNode().LineComment = lineComment\n\t\t// non-empty sequences should be standardized to FoldedStyle\n\t\t// env: # from-param: ${env}\n\t\t//  - foo\n\t\t//  - bar\n\t\tnode.Value.YNode().Style = yaml.FoldedStyle\n\n\t\tas.Results = append(as.Results, &Result{\n\t\t\tFilePath:  as.filePath,\n\t\t\tFieldPath: fieldPath,","sourceCodeStart":191,"sourceCodeEnd":227,"githubUrl":"https://github.com/GoogleContainerTools/skaffold/blob/a1189de023efc32d4b8e11f395acc678aa555011/pkg/skaffold/render/applysetters/apply_setters.go#L191-L227","documentation":"Fires when the value provided for an array setter fails to parse as YAML — the setter targets a sequence node, so its input must be an array of values (e.g. [a,b] or a comma-separated list), but the supplied string parsed to a scalar/map instead.","triggerScenarios":"Thrown at pkg/skaffold/render/applysetters/apply_setters.go:209 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide the value as an array, e.g. --set-string key=[a,b] or a comma-separated list per the docs","Quote the value so the shell passes brackets/commas through intact","Check for trailing characters that make the YAML parse to a non-array"],"exampleFix":null,"handlingStrategy":"validation","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"}