Merge "lint: always run module specified in ANDROID_LINT_CHECK_EXTRA_MODULES"

This commit is contained in:
Matt Gilbride 2022-11-21 17:38:21 +00:00 committed by Gerrit Code Review
commit 0e2c2aaa60

View file

@ -190,10 +190,8 @@ func (l *linter) deps(ctx android.BottomUpMutatorContext) {
extraCheckModules := l.properties.Lint.Extra_check_modules extraCheckModules := l.properties.Lint.Extra_check_modules
if checkOnly := ctx.Config().Getenv("ANDROID_LINT_CHECK"); checkOnly != "" { if extraCheckModulesEnv := ctx.Config().Getenv("ANDROID_LINT_CHECK_EXTRA_MODULES"); extraCheckModulesEnv != "" {
if checkOnlyModules := ctx.Config().Getenv("ANDROID_LINT_CHECK_EXTRA_MODULES"); checkOnlyModules != "" { extraCheckModules = append(extraCheckModules, strings.Split(extraCheckModulesEnv, ",")...)
extraCheckModules = strings.Split(checkOnlyModules, ",")
}
} }
ctx.AddFarVariationDependencies(ctx.Config().BuildOSCommonTarget.Variations(), ctx.AddFarVariationDependencies(ctx.Config().BuildOSCommonTarget.Variations(),