-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
编译cmd的时候报错“..\internal\service\service.go:34:54: undefined: api.HelloReq” #41
Comments
别着急, 文档还没写清楚, 要先用工具生成 如果你真要使用rpc功能, 看看 https://github.com/bilibili/kratos/blob/master/doc/wiki-cn/warden-quickstart.md 这个文档, 但你会发现在 当然, 可能还会有坑, 这个命令不支持多gopath的情况, 所以可能你还要改改. 就算你真的生成了 这是一个文档还没写明白就着急开源的项目, 对前期的试用者是一个巨大的挑战, 当然也会让潜在的爱好者放弃. |
@lealife 可以先关注,我们逐渐再完善中,也谢谢反馈。其实我们并不是强依赖discovery,naming是一个抽象,可以实现zk、etcd等,但是时间原因都还没来得及实现,也欢迎贡献PR |
期待尽快完善!! 持续关注. |
一键默认生成没有这个问题,自定义生成确实复现这个问题 |
GOOS
protoc:https://github.com/protocolbuffers/protobuf#protocol-compiler-installation |
说明:进入cmd目录运行go build的时候,报了错误“..\internal\service\service.go:34:54: undefined: api.HelloReq”,对比官方给出的kratos-demo,发现api目录下面的文件api.pb.go并没有
重现步骤:
环境:
The text was updated successfully, but these errors were encountered: