HubQin opened a new issue, #2394:
URL: https://github.com/apache/dubbo-go/issues/2394

   ### Environment
   
   <!-- 
   - Server: Dubbo-go, v3.0.5
   - Client: Dubbo-go, v3.0.5
   - Protocol: Triple
   - Registry: Nacos, v2.0.0
   -->
   
   - Server: Dubbo-go, v3.1.0
   - Client: Dubbo-go, v3.1.0
   - Protocol: Dubbo
   - Registry: Nacos
   
   ### Issue description
   
   <!-- Here is a brief description about the issue. -->
   health check in 
"dubbo.apache.org/dubbo-go/v3/protocol/dubbo3/health/triple_health_v1" 
conflicts with the one in "google.golang.org/grpc/health/grpc_health_v1".
   
   Code to show the bug:
   ```
   package main
   
   import (
        _ "dubbo.apache.org/dubbo-go/v3/imports"
        _ "google.golang.org/grpc/health/grpc_health_v1"
   )
   
   func main() {
   
   }
   
   ```
   > To execute the code above, it's necessary to create a `go.mod` file and 
update the dependencies.
   
   ### Logs
   
   <details><summary>Click me to check logs</summary>
   After running code above, panic occurs:
   
   ```
   panic: proto: file "grpc/health/v1/health.proto" has a name conflict over 
grpc.health.v1.HealthCheckResponse
        previously from: 
"dubbo.apache.org/dubbo-go/v3/protocol/dubbo3/health/triple_health_v1"
        currently from:  "google.golang.org/grpc/health/grpc_health_v1"
   See https://protobuf.dev/reference/go/faq#namespace-conflict
   ```
   
   </details>
   
   > See doc in: https://protobuf.dev/reference/go/faq#namespace-conflict. 
   > This issue arises due to the 
'protocol/dubbo3/health/triple_health_v1/health.proto' having an identical 
package name as 
`https://github.com/grpc/grpc-proto/blob/master/grpc/health/v1/health.proto`.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to