go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

Use goctl api format command encountered the error "import cycle not allowed"

Open csh995426531 opened this issue 1 year ago • 2 comments

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:

  1. multiple files exist a.api b.api c.api common-a.api common-b.api
  2. 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)

csh995426531 avatar May 18 '23 03:05 csh995426531