Print the modules that had strict_updatability_linting set

strict_updatability_linting imposes requirements on all of a module's
transitive dependencies. So you may start getting errors on a module
due to some random other module that is hard to track down. Print out
the modules that caused the current module to use strict updatability
linting so that these errors are easier to debug.

Ignore-AOSP-First: The lint code in internal has diverged from AOSP quite a bit now
Bug: 323366771
Test: m lint-check
Change-Id: I43f2b1adb1ffa5b6e9516694c2bb87c7f94fed7d
This commit is contained in:
Cole Faust
2024-02-01 17:36:57 -08:00
parent 9aa0496c08
commit ada543ed86
5 changed files with 108 additions and 21 deletions

View File

@@ -2968,17 +2968,17 @@ func (module *SdkLibraryImport) LintDepSets() LintDepSets {
}
}
func (module *SdkLibraryImport) GetStrictUpdatabilityLinting() bool {
func (module *SdkLibraryImport) GetStrictUpdatabilityLinting(ctx android.BaseModuleContext) []string {
if module.implLibraryModule == nil {
return false
return nil
} else {
return module.implLibraryModule.GetStrictUpdatabilityLinting()
return module.implLibraryModule.GetStrictUpdatabilityLinting(ctx)
}
}
func (module *SdkLibraryImport) SetStrictUpdatabilityLinting(strictLinting bool) {
func (module *SdkLibraryImport) SetStrictUpdatabilityLinting(parents []string) {
if module.implLibraryModule != nil {
module.implLibraryModule.SetStrictUpdatabilityLinting(strictLinting)
module.implLibraryModule.SetStrictUpdatabilityLinting(parents)
}
}