Correct lint error when it cannot find api_versions_* module am: 375acd8def
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3071643 Change-Id: I5f13f890df3e692bcfba30ef4a43044a9929345d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -612,7 +612,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
|
||||
}
|
||||
@@ -620,7 +620,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