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
goc version: 1.4.4 Root Cause: in our repo, we have a package named as
listen
, while in goc auto gen filehttp_cover_apis_auto_generated.go
, there is a function named listen() also, which causes build fail.Issue log can see in here: