This is an automated email from the ASF dual-hosted git repository.
xuetaoli pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dubbo-go-samples.git
The following commit(s) were added to refs/heads/main by this push:
new 312c8619 fix: update environment variable references in README and
server files (#931)
312c8619 is described below
commit 312c861958bf2b98363d051a04faaeb261c31ad0
Author: KamTo Hung <[email protected]>
AuthorDate: Mon Nov 17 21:34:48 2025 +0800
fix: update environment variable references in README and server files
(#931)
* fix: update environment variable references in README and server files
---
compatibility/direct/README.md | 2 +-
compatibility/direct/README_zh.md | 2 +-
compatibility/rpc/grpc/go-client/cmd/client.go | 1 +
compatibility/rpc/grpc/go-server/cmd/server.go | 4 ++--
compatibility/rpc/triple/msgpack/go-server/cmd/server.go | 2 +-
compatibility/tls/grpc/go-server/cmd/server.go | 2 +-
go.mod | 1 +
go.sum | 1 +
8 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/compatibility/direct/README.md b/compatibility/direct/README.md
index da91da94..c5fe16d2 100644
--- a/compatibility/direct/README.md
+++ b/compatibility/direct/README.md
@@ -145,7 +145,7 @@ Configure the environment variable to specify the
configuration file path requir
```shell
APP_LOG_CONF_FILE=direct/go-server/conf/log.yml;
-CONF_PROVIDER_FILE_PATH=direct/go-server/conf/server.yml
+DUBBO_GO_CONFIG_PATH=direct/go-server/conf/server.yml
```
- go-client:
diff --git a/compatibility/direct/README_zh.md
b/compatibility/direct/README_zh.md
index e3c41fc8..4733ea3e 100644
--- a/compatibility/direct/README_zh.md
+++ b/compatibility/direct/README_zh.md
@@ -146,7 +146,7 @@ err := userProvider.GetUser(context.TODO(),
[]interface{}{"A001"}, user)
```shell
APP_LOG_CONF_FILE=direct/go-server/conf/log.yml;
-CONF_PROVIDER_FILE_PATH=direct/go-server/conf/server.yml
+DUBBO_GO_CONFIG_PATH=direct/go-server/conf/server.yml
```
- go-client:
diff --git a/compatibility/rpc/grpc/go-client/cmd/client.go
b/compatibility/rpc/grpc/go-client/cmd/client.go
index 9fdac61c..37fe37c0 100644
--- a/compatibility/rpc/grpc/go-client/cmd/client.go
+++ b/compatibility/rpc/grpc/go-client/cmd/client.go
@@ -24,6 +24,7 @@ import (
import (
"dubbo.apache.org/dubbo-go/v3/config"
_ "dubbo.apache.org/dubbo-go/v3/imports"
+ _ "dubbo.apache.org/dubbo-go/v3/protocol/grpc"
"github.com/dubbogo/gost/log"
)
diff --git a/compatibility/rpc/grpc/go-server/cmd/server.go
b/compatibility/rpc/grpc/go-server/cmd/server.go
index 3dd64439..500600da 100644
--- a/compatibility/rpc/grpc/go-server/cmd/server.go
+++ b/compatibility/rpc/grpc/go-server/cmd/server.go
@@ -28,7 +28,7 @@ import (
import (
"dubbo.apache.org/dubbo-go/v3/config"
- _ "dubbo.apache.org/dubbo-go/v3/imports"
+ _ "dubbo.apache.org/dubbo-go/v3/protocol/grpc"
"github.com/dubbogo/gost/log/logger"
)
@@ -50,7 +50,7 @@ func (g *GreeterProvider) SayHello(ctx context.Context, req
*pb.HelloRequest) (r
return &pb.HelloReply{Message: "this is message from reply"}, nil
}
-// need to setup environment variable "CONF_PROVIDER_FILE_PATH" to
"conf/server.yml" before run
+// need to setup environment variable "DUBBO_GO_CONFIG_PATH" to
"conf/server.yml" before run
func main() {
config.SetProviderService(&GreeterProvider{})
if err := config.Load(); err != nil {
diff --git a/compatibility/rpc/triple/msgpack/go-server/cmd/server.go
b/compatibility/rpc/triple/msgpack/go-server/cmd/server.go
index 1ebbbe88..6107ae80 100644
--- a/compatibility/rpc/triple/msgpack/go-server/cmd/server.go
+++ b/compatibility/rpc/triple/msgpack/go-server/cmd/server.go
@@ -59,7 +59,7 @@ func init() {
config.SetProviderService(new(UserProvider))
}
-// need to setup environment variable "CONF_PROVIDER_FILE_PATH" to
"conf/server.yml" before run
+// need to setup environment variable "DUBBO_GO_CONFIG_PATH" to
"conf/server.yml" before run
func main() {
if err := config.Load(); err != nil {
panic(err)
diff --git a/compatibility/tls/grpc/go-server/cmd/server.go
b/compatibility/tls/grpc/go-server/cmd/server.go
index 3d8a53ec..a0031d19 100644
--- a/compatibility/tls/grpc/go-server/cmd/server.go
+++ b/compatibility/tls/grpc/go-server/cmd/server.go
@@ -48,7 +48,7 @@ func (g *GreeterProvider) SayHello(ctx context.Context, req
*pb.HelloRequest) (r
return &pb.HelloReply{Message: "this is message from reply"}, nil
}
-// need to setup environment variable "CONF_PROVIDER_FILE_PATH" to
"conf/server.yml" before run
+// need to setup environment variable "DUBBO_GO_CONFIG_PATH" to
"conf/server.yml" before run
func main() {
config.SetProviderService(&GreeterProvider{})
if err := config.Load(); err != nil {
diff --git a/go.mod b/go.mod
index 58de5c22..bcc4f822 100644
--- a/go.mod
+++ b/go.mod
@@ -88,6 +88,7 @@ require (
github.com/gorilla/sessions v1.2.2 // indirect
github.com/gorilla/websocket v1.4.2 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect
+ github.com/grpc-ecosystem/grpc-opentracing
v0.0.0-20180507213350-8e809c8a8645 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
diff --git a/go.sum b/go.sum
index f5d96b5d..01b392b8 100644
--- a/go.sum
+++ b/go.sum
@@ -487,6 +487,7 @@ github.com/grpc-ecosystem/grpc-gateway v1.16.0
h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4
github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod
h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0
h1:YBftPWNWd4WwGqtY2yeZL2ef8rHAxPBD8KFhJpmcqms=
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0/go.mod
h1:YN5jB8ie0yfIUg6VvR9Kz84aCaG7AsGZnLjhHbUqwPg=
+github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645
h1:MJG/KsmcqMwFAkh8mTnAwhyKoB+sTAnY4CACC110tbU=
github.com/grpc-ecosystem/grpc-opentracing
v0.0.0-20180507213350-8e809c8a8645/go.mod
h1:6iZfnjpejD4L/4DwD7NryNaJyCQdzwWwH2MWhCA90Kw=
github.com/hashicorp/consul/api v1.1.0/go.mod
h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q=
github.com/hashicorp/consul/api v1.3.0/go.mod
h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE=