in pkg/gcv/validator.go [251:264]
func (v *Validator) fixAncestry(input map[string]interface{}) error {
ancestors, found, err := unstructured.NestedStringSlice(input, ancestorSliceKey)
if found && err == nil {
input[ancestryPathKey] = asset2.AncestryPath(ancestors)
return nil
}
ancestry, found, err := unstructured.NestedString(input, ancestryPathKey)
if found && err == nil {
input[ancestryPathKey] = configs.NormalizeAncestry(ancestry)
return nil
}
return fmt.Errorf("asset missing ancestry information: %v", input)
}