go-zero
go-zero copied to clipboard
Use goctl api format command encountered the error "import cycle not allowed"
Description of the error I encountered the error "import cycle not allowed" when importing nested files using .api
Recreate Steps to reproduce the behavior, if applicable:
- multiple files exist a.api b.api c.api common-a.api common-b.api
- Import common-a.api and common-b.api in files a, b and c respectively
Expected behavior Normal generation.
Screenshot If applicable, add screenshots to help explain your problem.
Environment (please fill in the following information):
- Operating system: macos
- go-zero version v1.5.1
- goctl version latest
More description Add any additional context about the issue here.
Translated with www.DeepL.com/Translator (free version)