Merge "Limit release config inheritance from aliases" into main am: ff1d27d5b4

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3107539

Change-Id: I5d1d7ccaeda1b338d3363fea66a48bdfb312daa9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
LaMont Jones 2024-05-31 15:50:12 +00:00 committed by Automerger Merge Worker
commit 52bbe54894

View file

@ -162,6 +162,9 @@ func (config *ReleaseConfig) GenerateReleaseConfig(configs *ReleaseConfigs) erro
if _, ok := myInheritsSet[inherit]; ok {
continue
}
if isBuildPrefix && configs.Aliases[inherit] != nil {
return fmt.Errorf("%s cannot inherit from alias %s", config.Name, inherit)
}
myInherits = append(myInherits, inherit)
myInheritsSet[inherit] = true
iConfig, err := configs.GetReleaseConfig(inherit)