{"record":{"id":"b19b39711029b38e","repo":"getsops/sops","slug":"incomplete-list","errorCode":null,"errorMessage":"Incomplete list","messagePattern":"Incomplete list","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"stores/flatten.go","lineNumber":163,"sourceCode":"\t\t\tresult[index] = sops.TreeItem{\n\t\t\t\tKey:   key,\n\t\t\t\tValue: value,\n\t\t\t}\n\t\t}\n\t\treturn result, nil\n\t}\n\tminValue := math.MaxInt\n\tmaxValue := math.MinInt\n\tfor k := range root.indices {\n\t\tif k < minValue {\n\t\t\tminValue = k\n\t\t}\n\t\tif k > maxValue {\n\t\t\tmaxValue = k\n\t\t}\n\t}\n\tif minValue != 0 || maxValue+1 != len(root.indices) {\n\t\treturn nil, fmt.Errorf(\"Incomplete list\")\n\t}\n\tresult := make([]interface{}, maxValue+1)\n\tfor k, v := range root.indices {\n\t\tvalue, err := convert(v)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tresult[k] = value\n\t}\n\treturn result, nil\n}\n\nfunc unflattenTreeBranch(branch sops.TreeBranch) (sops.TreeBranch, error) {\n\troot := &node{}\n\tfor _, item := range branch {\n\t\tif _, ok := item.Key.(sops.Comment); ok {\n\t\t\tcontinue\n\t\t}","sourceCodeStart":145,"sourceCodeEnd":181,"githubUrl":"https://github.com/getsops/sops/blob/13442bb98183887d7a9ac09ec8ab0564673a59d8/stores/flatten.go#L145-L181","documentation":"Error \"Incomplete list\" thrown in getsops/sops.","triggerScenarios":"Thrown at stores/flatten.go:163 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"13442bb98183887d7a9ac09ec8ab0564673a59d8","analyzedAt":"2026-09-01T03:53:00.447Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}