aboutsummaryrefslogtreecommitdiff
path: root/apex
diff options
context:
space:
mode:
authorCole Faust <colefaust@google.com>2024-02-04 05:16:29 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2024-02-04 05:16:29 +0000
commitf090b82f04b9f12947256b850d037467f634b56f (patch)
tree769b70d86159ffe00539de3dfc1718af330105cc /apex
parent0c8c18b38d6d26df198f9879449f2fb854ed98b3 (diff)
parentada543ed86dc4828cecdb937844c6468c872d3e3 (diff)
Merge "Print the modules that had strict_updatability_linting set" into main
Diffstat (limited to 'apex')
-rw-r--r--apex/apex.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/apex/apex.go b/apex/apex.go
index 276ac80d5..abab12b35 100644
--- a/apex/apex.go
+++ b/apex/apex.go
@@ -1104,6 +1104,7 @@ func apexStrictUpdatibilityLintMutator(mctx android.TopDownMutatorContext) {
return
}
if apex, ok := mctx.Module().(*apexBundle); ok && apex.checkStrictUpdatabilityLinting() {
+ parents := []string{mctx.ModuleName()}
mctx.WalkDeps(func(child, parent android.Module) bool {
// b/208656169 Do not propagate strict updatability linting to libcore/
// These libs are available on the classpath during compilation
@@ -1117,7 +1118,7 @@ func apexStrictUpdatibilityLintMutator(mctx android.TopDownMutatorContext) {
return false
}
if lintable, ok := child.(java.LintDepSetsIntf); ok {
- lintable.SetStrictUpdatabilityLinting(true)
+ lintable.SetStrictUpdatabilityLinting(parents)
}
// visit transitive deps
return true