-
Notifications
You must be signed in to change notification settings - Fork 917
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
出现 --go-triple_out: exit status 127 #2695
Comments
这里是新版本 triple 的使用示例,可以参考: https://github.com/apache/dubbo-go-samples/tree/main/helloworld |
我们这边建议是直接使用最新版本的 protoc 插件和生成的代码。基于这一点,我没完全理解你这边的问题,是新版本的代码生成遇到问题?还是不知道如何生成旧版本的代码? |
我昨晚找到问题了, 我的项目里面存在go.work 影响了module_path的获取,所以就报错了, 在gen-triple那边提交了一个pr 可以参考下哈 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
go version go1.22.4 darwin/arm64
dubbogo-cli Version: 1.0.0
protoc: libprotoc 27.1
protoc-gen-go v1.34.2
protoc-gen-go-triple 3.0.0
Issue description
发现用新版本的triple.go文件有差异,多了Register*****Handler方法,并在通过config-center启动时,需调用该方法进行注册。
故想尝试 protoc --go_out=. --go-triple_out=. ./user.proto 重新生成对应的.triple.go文件 ,就报错走不下去了
目前发现windows版本可以正常生成*.triple.go文件,但是mac上就如下错误
--go-triple_out: exit status 127
Logs
Click me to check logs
--go-triple_out: exit status 127 // 就这么一行The text was updated successfully, but these errors were encountered: