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 1.22 kitex-mux protobuf example build error #121

Open
ouvaa opened this issue Mar 24, 2024 · 1 comment
Open

go 1.22 kitex-mux protobuf example build error #121

ouvaa opened this issue Mar 24, 2024 · 1 comment

Comments

@ouvaa
Copy link

ouvaa commented Mar 24, 2024

did go mod init and go get -u

this is in kitex-benchmark, sorry i posted in "wrong" issue. but possible to resolve here?

ubuntu@ubuntu:~/kitex-benchmark/protobuf/kitex-mux$ go build main.go 
# github.com/cloudwego/kitex/pkg/utils
../../../go/pkg/mod/github.com/cloudwego/kitex@v0.9.1/pkg/utils/thrift.go:54:54: not enough arguments in call to t.tProt.WriteMessageBegin
	have (string, thrift.TMessageType, int32)
	want (context.Context, string, thrift.TMessageType, int32)
../../../go/pkg/mod/github.com/cloudwego/kitex@v0.9.1/pkg/utils/thrift.go:57:21: not enough arguments in call to msg.Write
	have (thrift.TProtocol)
	want (context.Context, thrift.TProtocol)
../../../go/pkg/mod/github.com/cloudwego/kitex@v0.9.1/pkg/utils/thrift.go:60:11: not enough arguments in call to t.tProt.WriteMessageEnd
	have ()
	want (context.Context)
../../../go/pkg/mod/github.com/cloudwego/kitex@v0.9.1/pkg/utils/thrift.go:74:35: not enough arguments in call to t.tProt.ReadMessageBegin
	have ()
	want (context.Context)
../../../go/pkg/mod/github.com/cloudwego/kitex@v0.9.1/pkg/utils/thrift.go:79:27: not enough arguments in call to exception.Read
	have (thrift.TProtocol)
	want (context.Context, thrift.TProtocol)
../../../go/pkg/mod/github.com/cloudwego/kitex@v0.9.1/pkg/utils/thrift.go:82:12: not enough arguments in call to t.tProt.ReadMessageEnd
	have ()
	want (context.Context)
../../../go/pkg/mod/github.com/cloudwego/kitex@v0.9.1/pkg/utils/thrift.go:88:20: not enough arguments in call to msg.Read
	have (thrift.TProtocol)
	want (context.Context, thrift.TProtocol)
../../../go/pkg/mod/github.com/cloudwego/kitex@v0.9.1/pkg/utils/thrift.go:91:2: not enough arguments in call to t.tProt.ReadMessageEnd
	have ()
	want (context.Context)
../../../go/pkg/mod/github.com/cloudwego/kitex@v0.9.1/pkg/utils/thrift.go:100:21: not enough arguments in call to msg.Write
	have (thrift.TProtocol)
	want (context.Context, thrift.TProtocol)
../../../go/pkg/mod/github.com/cloudwego/kitex@v0.9.1/pkg/utils/thrift.go:114:20: not enough arguments in call to msg.Read
	have (thrift.TProtocol)
	want (context.Context, thrift.TProtocol)
../../../go/pkg/mod/github.com/cloudwego/kitex@v0.9.1/pkg/utils/thrift.go:114:20: too many errors
@GuangmingLuo
Copy link
Member

Try replace github.com/apache/thrift => github.com/apache/thrift v0.13.0 in go.mod

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

No branches or pull requests

2 participants