Skip to content
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

Closed
linfun486 opened this issue Jul 4, 2024 · 4 comments
Closed

出现 --go-triple_out: exit status 127 #2695

linfun486 opened this issue Jul 4, 2024 · 4 comments

Comments

@linfun486
Copy link

linfun486 commented Jul 4, 2024

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

  • Server: Dubbo-go,v3.2.0-rc1
  • Client: Dubbo-go,v3.2.0-rc1
  • Protocol: Triple
  • Registry: nacos, v2.3.2

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 // 就这么一行
@chickenlj
Copy link
Contributor

这里是新版本 triple 的使用示例,可以参考:

https://github.com/apache/dubbo-go-samples/tree/main/helloworld

@chickenlj
Copy link
Contributor

我们这边建议是直接使用最新版本的 protoc 插件和生成的代码。基于这一点,我没完全理解你这边的问题,是新版本的代码生成遇到问题?还是不知道如何生成旧版本的代码?

@linfun486
Copy link
Author

我们这边建议是直接使用最新版本的 protoc 插件和生成的代码。基于这一点,我没完全理解你这边的问题,是新版本的代码生成遇到问题?还是不知道如何生成旧版本的代码?

我昨晚找到问题了, 我的项目里面存在go.work 影响了module_path的获取,所以就报错了, 在gen-triple那边提交了一个pr 可以参考下哈

@chickenlj
Copy link
Contributor

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants