mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-02-02 16:28:39 +08:00
fix: multiple files import the same api file (#3642)
This commit is contained in:
parent
172ff407f3
commit
117c3a9069
@ -156,6 +156,7 @@ func (p *Parser) invokeImportedApi(filename string, imports []*ImportExpr) ([]*A
|
||||
}
|
||||
// ignore already imported file
|
||||
if p.alreadyImported(impPath) {
|
||||
p.importStatck.pop()
|
||||
continue
|
||||
}
|
||||
p.fileMap[impPath] = PlaceHolder{}
|
||||
|
Loading…
Reference in New Issue
Block a user