Correct lint error when it cannot find api_versions_* module am: 375acd8def
am: 5175694880
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3071643 Change-Id: Ic7b62badd880f40112a27d03a153969de6f6234b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -606,7 +606,7 @@ func (l *lintSingleton) copyLintDependencies(ctx android.SingletonContext) {
|
||||
apiVersionsDb := findModuleOrErr(ctx, files.apiVersionsModule)
|
||||
if apiVersionsDb == nil {
|
||||
if !ctx.Config().AllowMissingDependencies() {
|
||||
ctx.Errorf("lint: missing module api_versions_public")
|
||||
ctx.Errorf("lint: missing module %s", files.apiVersionsModule)
|
||||
}
|
||||
return
|
||||
}
|
||||
@@ -614,7 +614,7 @@ func (l *lintSingleton) copyLintDependencies(ctx android.SingletonContext) {
|
||||
sdkAnnotations := findModuleOrErr(ctx, files.annotationsModule)
|
||||
if sdkAnnotations == nil {
|
||||
if !ctx.Config().AllowMissingDependencies() {
|
||||
ctx.Errorf("lint: missing module sdk-annotations.zip")
|
||||
ctx.Errorf("lint: missing module %s", files.annotationsModule)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user