-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
fix: fixed goctl api go --home parameter error when loading non-exist… #3319
Conversation
I meet this same problem today, but I suggest to fix this problem in a positive way. |
Please fix the error in loop at https://github.com/zeromicro/go-zero/blob/master/tools/goctl/util/pathx/file.go#L155 as follows: for _, entry := range entries {
info, err := entry.Info()
if err != nil {
continue
}
infos = append(infos, info)
} |
Hi, it has been repaired, please check it. |
@anqiansong |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
zeromicro#3319) Co-authored-by: yuanyou <yuanyou@kezaihui.com>
Describe the bug
the 1.5.3 path is inexplicably found in the file path, causing the generation failure.
By viewing the goctl source code, find the
tools/goctl/util/pathx/file.go
148 line, beforeTemplateDir does not exist.The original code submission history for comparison found that err is not processed, is ignored.
After modification, the run was found to be successful.