Clean up mixed builds module names filtering

* Remove `Bp2buildCcLibraryStaticOnlyList` it is never set
* Remove the rest of the sutff related to it
* Streamline MixedBuildsEnabled
* Rename BazelContext.BazelAllowlisted to BazelContext.NameFilter
  to reflect its action
* Rename bazelContext to mixedBuildBazelContext
* Fix minor warnings from Go static analyzer

Test: treehugger
Change-Id: Ie245c992f94bbfd5c7c23dd06917026200a28263
This commit is contained in:
Sasha Smundak
2022-12-29 17:11:49 -08:00
committed by Alexander Smundak
parent bf51151bd4
commit 39a301c963
7 changed files with 71 additions and 130 deletions

View File

@@ -417,11 +417,6 @@ func TestBp2buildAllowList(t *testing.T) {
t.Errorf("bp2build module do not convert of %s: expected: true, got: %v", k, allowlist.moduleDoNotConvert[k])
}
}
for _, k := range allowlists.Bp2buildCcLibraryStaticOnlyList {
if !allowlist.ccLibraryStaticOnly[k] {
t.Errorf("bp2build cc library static only of %s: expected: true, got: %v", k, allowlist.ccLibraryStaticOnly[k])
}
}
}
func TestShouldKeepExistingBuildFileForDir(t *testing.T) {