Merge "Fix false positives of go modules in bpbuild-prog" into main am: aaf91a48e9
am: ab601f2df9
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2765225 Change-Id: Ic8aac160c907d43a766b5554b7aa520b34bc0a41 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
f81c892811
1 changed files with 4 additions and 4 deletions
|
@ -783,13 +783,13 @@ func GenerateBazelTargets(ctx *CodegenContext, generateFilegroups bool) (convers
|
|||
} else if glib, ok := m.(*bootstrap.GoPackage); ok {
|
||||
targets, targetErrs = generateBazelTargetsGoPackage(bpCtx, glib, nameToGoLibMap)
|
||||
errs = append(errs, targetErrs...)
|
||||
metrics.IncrementRuleClassCount("go_library")
|
||||
metrics.AddConvertedModule(glib, "go_library", dir)
|
||||
metrics.IncrementRuleClassCount("bootstrap_go_package")
|
||||
metrics.AddConvertedModule(glib, "bootstrap_go_package", dir)
|
||||
} else if gbin, ok := m.(*bootstrap.GoBinary); ok {
|
||||
targets, targetErrs = generateBazelTargetsGoBinary(bpCtx, gbin, nameToGoLibMap)
|
||||
errs = append(errs, targetErrs...)
|
||||
metrics.IncrementRuleClassCount("go_binary")
|
||||
metrics.AddConvertedModule(gbin, "go_binary", dir)
|
||||
metrics.IncrementRuleClassCount("blueprint_go_binary")
|
||||
metrics.AddConvertedModule(gbin, "blueprint_go_binary", dir)
|
||||
} else {
|
||||
metrics.AddUnconvertedModule(m, moduleType, dir, android.UnconvertedReason{
|
||||
ReasonType: int(bp2build_metrics_proto.UnconvertedReasonType_TYPE_UNSUPPORTED),
|
||||
|
|
Loading…
Reference in a new issue