Add dependency tags to apex available errors
Having dependency tags in the dependency path that shows why a specific module is considered part of an apex makes it easier to understand why that is the case and detect possible issues. Bug: 152762638 Test: m nothing Change-Id: Iba2a8a5a6abe03dadee456e760aa4373cd00c07b
This commit is contained in:
@@ -3540,11 +3540,17 @@ func TestApexAvailable_DirectDep(t *testing.T) {
|
||||
func TestApexAvailable_IndirectDep(t *testing.T) {
|
||||
// libbbaz is an indirect dep
|
||||
testApexError(t, `requires "libbaz" that is not available for the APEX. Dependency path:
|
||||
.*via tag apex\.dependencyTag.*"sharedLib".*
|
||||
.*-> libfoo.*link:shared.*
|
||||
.*via tag cc\.DependencyTag.*"reuse objects".*
|
||||
.*-> libfoo.*link:static.*
|
||||
.*via tag cc\.DependencyTag.*"shared from static".*
|
||||
.*-> libbar.*link:shared.*
|
||||
.*via tag cc\.DependencyTag.*"reuse objects".*
|
||||
.*-> libbar.*link:static.*
|
||||
.*via tag cc\.DependencyTag.*"shared from static".*
|
||||
.*-> libbaz.*link:shared.*
|
||||
.*via tag cc\.DependencyTag.*"reuse objects".*
|
||||
.*-> libbaz.*link:static.*`, `
|
||||
apex {
|
||||
name: "myapex",
|
||||
|
Reference in New Issue
Block a user