getsops/sops · error

Incomplete list

Error message

Incomplete list

What it means

Error "Incomplete list" thrown in getsops/sops.

Source

Thrown at stores/flatten.go:163

			result[index] = sops.TreeItem{
				Key:   key,
				Value: value,
			}
		}
		return result, nil
	}
	minValue := math.MaxInt
	maxValue := math.MinInt
	for k := range root.indices {
		if k < minValue {
			minValue = k
		}
		if k > maxValue {
			maxValue = k
		}
	}
	if minValue != 0 || maxValue+1 != len(root.indices) {
		return nil, fmt.Errorf("Incomplete list")
	}
	result := make([]interface{}, maxValue+1)
	for k, v := range root.indices {
		value, err := convert(v)
		if err != nil {
			return nil, err
		}
		result[k] = value
	}
	return result, nil
}

func unflattenTreeBranch(branch sops.TreeBranch) (sops.TreeBranch, error) {
	root := &node{}
	for _, item := range branch {
		if _, ok := item.Key.(sops.Comment); ok {
			continue
		}

View on GitHub (pinned to 13442bb981)

When it happens

Trigger: Thrown at stores/flatten.go:163 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of getsops/sops@13442bb981 (2026-09-01). Data as JSON: /api/errors/b19b39711029b38e. Report an issue: GitHub.