Make language merging of markup etc. config without values in the root

Updates #10953
This commit is contained in:
Bjørn Erik Pedersen
2023-05-20 11:17:43 +02:00
parent 150d190ff0
commit 4f085e80da
3 changed files with 60 additions and 18 deletions

View File

@@ -748,8 +748,13 @@ func FromLoadConfigResult(fs afero.Fs, res config.LoadConfigResult) (*Configs, e
}
}
} else {
// Apply new values to the root.
differentRootKeys = append(differentRootKeys, "")
switch vv.(type) {
case maps.Params:
differentRootKeys = append(differentRootKeys, kk)
default:
// Apply new values to the root.
differentRootKeys = append(differentRootKeys, "")
}
}
}
differentRootKeys = helpers.UniqueStringsSorted(differentRootKeys)