You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2022/05/23 23:46:34 UTC
[dubbo-go-samples] branch master updated: 更新dubbo3grpc generator使用文档 (#377)
This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-go-samples.git
The following commit(s) were added to refs/heads/master by this push:
new 16bdc707 更新dubbo3grpc generator使用文档 (#377)
16bdc707 is described below
commit 16bdc7079a801b135a88f48d55dfe7bcb4941d27
Author: Karl <ka...@gmail.com>
AuthorDate: Tue May 24 07:46:30 2022 +0800
更新dubbo3grpc generator使用文档 (#377)
1. 升级插件:protoc-gen-dubbo to protoc-gen-dubbo3grpc
2. protoc命令更新,使用插件dubbo3grpc
---
rpc/grpc/protobuf/protobuf.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rpc/grpc/protobuf/protobuf.mk b/rpc/grpc/protobuf/protobuf.mk
index 0d7e06f1..67ec4b10 100644
--- a/rpc/grpc/protobuf/protobuf.mk
+++ b/rpc/grpc/protobuf/protobuf.mk
@@ -16,10 +16,10 @@ ifeq ($(UNAME), Linux)
endif
$(PROTOC_GEN_GO):
- go get -u dubbo.apache.org/dubbo-go/v3/protocol/grpc/protoc-gen-dubbo
+ go install github.com/dubbogo/tools/cmd/protoc-gen-dubbo3grpc@latest
helloworld.pb.go: helloworld.proto | $(PROTOC_GEN_GO) $(PROTOC)
- protoc -I . helloworld.proto --dubbo_out=plugins=grpc+dubbo:.
+ protoc -I . helloworld.proto --dubbo3grpc_out=plugins=grpc+dubbo3grpc:.
.PHONY: compile
compile: helloworld.pb.go