Commit 5668b12
authored
docs(config_yaml): clarify DUBBO_GO_CONFIG_PATH resolution (#1097)
DUBBO_GO_CONFIG_PATH is resolved against the running process's working
directory, but the README only showed a relative form
(`../conf/dubbogo.yml`) that requires cd'ing into the `cmd` directory.
Users who run the more idiomatic `go run ./config_yaml/go-server/cmd/...`
from the repo root see dubbo.Load() panic with no clear hint about why.
Update both README.md and README_zh.md to:
- Recommend running from the repo root with an absolute path built via
`$(pwd)/...`, which works regardless of where the user is.
- Keep the original cd + relative path form as an alternative.
- Add an explicit note explaining how the variable is resolved so users
can debug their own setup.
Closes #10831 parent 3ac38cf commit 5668b12
2 files changed
Lines changed: 50 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
35 | 46 | | |
36 | | - | |
37 | 47 | | |
38 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
39 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
40 | 63 | | |
| 64 | + | |
41 | 65 | | |
42 | | - | |
43 | 66 | | |
44 | 67 | | |
45 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
36 | 47 | | |
37 | | - | |
38 | 48 | | |
39 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
40 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
41 | 64 | | |
| 65 | + | |
42 | 66 | | |
43 | | - | |
44 | 67 | | |
45 | 68 | | |
46 | 69 | | |
| |||
0 commit comments