Merge "sort _all_release_configs variable before we write it" into 24D1-dev

This commit is contained in:
LaMont Jones
2024-05-10 01:21:08 +00:00
committed by Android (Google) Code Review

View File

@@ -291,6 +291,9 @@ func (configs *ReleaseConfigs) WriteMakefile(outFile, targetRelease string) erro
allReleaseNames = append(allReleaseNames, v.Name) allReleaseNames = append(allReleaseNames, v.Name)
allReleaseNames = append(allReleaseNames, v.OtherNames...) allReleaseNames = append(allReleaseNames, v.OtherNames...)
} }
slices.SortFunc(allReleaseNames, func(a, b string) int {
return cmp.Compare(a, b)
})
config, err := configs.GetReleaseConfig(targetRelease) config, err := configs.GetReleaseConfig(targetRelease)
if err != nil { if err != nil {
return err return err