-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gf gen service import the wrong version of the package #2971
Comments
@wheelergeo It seems that there's some improvement for this function. It should check line by line for the imports part of go file content, not for all content of go file. |
Hello @wheelergeo. We like your proposal/feedback and would appreciate a contribution via a Pull Request by you or another community member. We thank you in advance for your contribution and are looking forward to reviewing it! |
When I import multiple api v1 packages in the logic package, there is a chance that there will be an import error when it is automatically generated and the compilation will fail. |
gf cli 获取的 imports 是正确的,在通过 |
I think the issue lies in the |
1. What version of
Go
and system type/arch are you using?2. What version of
GoFrame
are you using?3. Can this issue be re-produced with the latest release?
4. What did you do?
5. What did you expect to see?
6. What did you see instead?
generated service file
import "github.com/gogf/gf/os/gtime"
The text was updated successfully, but these errors were encountered: