Merge "Make the enabled property configurable" into main

This commit is contained in:
Cole Faust
2024-05-07 17:49:10 +00:00
committed by Gerrit Code Review
53 changed files with 168 additions and 105 deletions

View File

@@ -354,7 +354,7 @@ func checkPrebuiltReplacesOverride(ctx BottomUpMutatorContext, b OverridableModu
}
func overridableModuleDepsMutator(ctx BottomUpMutatorContext) {
if b, ok := ctx.Module().(OverridableModule); ok && b.Enabled() {
if b, ok := ctx.Module().(OverridableModule); ok && b.Enabled(ctx) {
b.OverridablePropertiesDepsMutator(ctx)
}
}