diff options
author | 2022-05-20 16:37:26 -0700 | |
---|---|---|
committer | 2022-05-20 16:54:00 -0700 | |
commit | a5ea2479d3e7311face6baf38dbd9d5059c9907a (patch) | |
tree | b3a7534ccad913f29d4c18499c11cc73c1daedf3 /android/singleton.go | |
parent | 1811ed3764bc5f434f1c2f2d39d337c67f31cf6a (diff) |
Fix bug: allow multiple gen_notice modules.
Test: m cts dist reportmissinglicenses
Change-Id: I07963c83eaddfe363a04871e813b56fe7f1465ad
Diffstat (limited to 'android/singleton.go')
-rw-r--r-- | android/singleton.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/android/singleton.go b/android/singleton.go index ec7f63eca..7c6cf4fd6 100644 --- a/android/singleton.go +++ b/android/singleton.go @@ -272,7 +272,8 @@ func (s *singletonContextAdaptor) ModuleVariantsFromName(referer Module, name st if depQualified.pkg != qualified.pkg { rule := effectiveVisibilityRules(s.Config(), depQualified) if !rule.matches(qualified) { - s.ModuleErrorf(referer, "references %s which is not visible to this module\nYou may need to add %q to its visibility", depQualified, "//"+s.ModuleDir(m)) + s.ModuleErrorf(referer, "module %q references %q which is not visible to this module\nYou may need to add %q to its visibility", + referer.Name(), depQualified, "//"+s.ModuleDir(referer)) continue } } |