diff options
author | 2023-11-17 18:58:48 +0000 | |
---|---|---|
committer | 2023-11-17 18:58:48 +0000 | |
commit | 2daded460c568942e2a07f7f67732038b46a84fe (patch) | |
tree | 0f0ffeebd438d927260ee6266e35efa801bd6e0a | |
parent | 692f54baeb8494e72faac06bb5cf0348d6862216 (diff) |
Skip error check if allow missing deps is true
Fixes: 311711411
Test: will use go/abtd
Change-Id: I6df6c679e3f122bbca317d16f89cca2ffc982794
-rw-r--r-- | android/apex_contributions.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/apex_contributions.go b/android/apex_contributions.go index 6eaca8b23..9b188deed 100644 --- a/android/apex_contributions.go +++ b/android/apex_contributions.go @@ -98,7 +98,7 @@ func (a *allApexContributions) DepsMutator(ctx BottomUpMutatorContext) { func (a *allApexContributions) SetPrebuiltSelectionInfoProvider(ctx BaseModuleContext) { addContentsToProvider := func(p *PrebuiltSelectionInfoMap, m *apexContributions) { for _, content := range m.Contents() { - if !ctx.OtherModuleExists(content) { + if !ctx.OtherModuleExists(content) && !ctx.Config().AllowMissingDependencies() { ctx.ModuleErrorf("%s listed in apex_contributions %s does not exist\n", content, m.Name()) } pi := &PrebuiltSelectionInfo{ |