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

yaml配置兼容性问题,目前能读取yaml后缀,无法读取yml后缀 #2708

Closed
leapig opened this issue Jul 17, 2024 · 2 comments
Closed
Assignees

Comments

@leapig
Copy link

leapig commented Jul 17, 2024

Environment

  • Server: Dubbo-go, v3.2.0-rc1
  • Client: Dubbo-go, v3.2.0-rc1
  • Protocol: Triple
  • Registry: Nacos, v2.3.2

Issue description

dubbo-go-sample项目部分文件配置文件是dubbogo.yml,无法跑起来,只能识别dubbogo.yaml文件

@YarBor
Copy link
Contributor

YarBor commented Jul 17, 2024

目前来看,这是预期的行为,配置文件的路径由环境变量DUBBO_GO_CONFIG_PATH指定,
默认的配置路径是 “../conf/dubbogo.yaml”
https://github.com/apache/dubbo-go/blob/cb400b2c8d464e5c0ad1d41478cfa734dd8c63e5/loader.go#L82C1-L108C2

dubbo-go-sample 在测试时,需要设置环境变量、指定配置文件。

    cd helloworld/go-server/cmd
    export DUBBO_GO_CONFIG_PATH="../conf/dubbogo.yml"
    go run .

@FoghostCn
Copy link
Contributor

dubbo-sample 项目 需要配置 DUBBO_GO_CONFIG_PATH 环境变量

@FoghostCn FoghostCn self-assigned this Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants