zeromicro / go-zero

A cloud-native Go microservices framework with cli tool for productivity.
https://go-zero.dev
MIT License
29.41k stars 3.97k forks source link

fix: getRealModule optimization #4285

Closed chowyu12 closed 3 months ago

chowyu12 commented 4 months ago

加速go.mod的解析

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.11%. Comparing base (8690859) to head (d761d9f). Report is 107 commits behind head on master.

Additional details and impacted files [see 255 files with indirect coverage changes](https://app.codecov.io/gh/zeromicro/go-zero/pull/4285/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zeromicro)
kevwan commented 3 months ago

Thanks for your contribution! We need to keep goctl use the same go version with go-zero.

kesonan commented 3 months ago

This method is not accept. We have thought of this solution when we design it. For the code generation of the following engineering structure, go.mod is incorrect,

cd api/user
goctl api go --api demo.api --dir .
demo
├── api
│   ├── user
│   └── class
├── rpc
│   ├── user
│   ├── class
│   └── message
└── go.mod