-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
About goctl not working after upgrade #4818
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
Comments
I guess you're using gvm? |
Here are some detailed troubleshooting steps and potential solutions: Possible causes and solutions:
|
@kevwan 最新版生成 types.go 文件存在问题,使用 v1.8.2 时是正常的 使用 v1.8.3 时报错 |
export GOCTL_EXPERIMENTAL=off |
设置了,没用,生成路径错误,types.go 正常应该生成的路径:app/demo/rest/internal/types/types.go ,v1.8.3 生成报如下错误: goctl api go --api=app/demo/rest/demo.api --dir=app/demo/rest/ app/demo/rest/etc/demo-api.yaml exists, ignored generation goroutine 1 [running]: |
echo $GOCTL_EXPERIMENTAL off |
not |
可行,可以用了 |
没设置时, 提示 no such file or directory 功能是不是还需要优化一下,没有目录自动创建对应目录 |
@Xiphin pls Add my wechat
|
加你了 通过一下 |
goctl upgrade after version:
v1.7.2
run:
goctl upgrade or go install github.com/zeromicro/go-zero/tools/goctl@latest
executing any goctl command will result in the following
Later I had to switch back to the original version, and it worked immediately:
go install github.com/zeromicro/go-zero/tools/[email protected]
The text was updated successfully, but these errors were encountered: