qiniu / goc

A Comprehensive Coverage Testing System for The Go Programming Language
Apache License 2.0
824 stars 118 forks source link

goc build failure due to declaration conflict #325

Closed Blaxon closed 1 year ago

Blaxon commented 1 year ago

goc version: 1.4.4 Root Cause: in our repo, we have a package named as listen, while in goc auto gen file http_cover_apis_auto_generated.go, there is a function named listen() also, which causes build fail.

Issue log can see in here:

[2023-02-19T21:07:11.180Z] ./http_cover_apis_auto_generated.go:1195:6: listen already declared through import of package listen ("xxxx-service/modules/listen")
[2023-02-19T21:07:11.180Z] ./wire_gen.go:27[/tmp/goc-build-e56c1baad0dd/cmd/dispatching/wire_gen.go:28:2]: other declaration of listen