zeromicro / go-zero

A cloud-native Go microservices framework with cli tool for productivity.
https://go-zero.dev
MIT License
29.42k stars 3.97k forks source link

goctl check: go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest error #4283

Closed jaronnie closed 3 months ago

jaronnie commented 4 months ago
$ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
go: downloading google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.0
go: google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest (in google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.5.0):
    The go.mod file for the module providing named packages contains one or
    more replace directives. It must not contain directives that would cause
    it to be interpreted differently than if it were the main module.

because latest protoc-gen-go-grpc go.mod has replace, can not use go install go dowload it

jaronnie commented 4 months ago
image
jaronnie commented 4 months ago
image
jaronnie commented 4 months ago

Does goctl need to lock the older version?

latest version is v1.5.0, we can use v1.4.0

or we can download tool, same as protoc tool

kesonan commented 3 months ago

It seems that grpc-go has already fixed it.