Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit001a665

Browse files
Use a config filename that is different from the binary name (#46)
This was causing issues in the Docker container, where viper looks for afilename, without considering the extension, resulting in it trying toparse the binary itself as JSON.
1 parent4f7077a commit001a665

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎pkg/translations/translations.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func TranslationHelper() (TranslationHelperFunc, func()) {
2424
v.AutomaticEnv()
2525

2626
// Load from JSON file
27-
v.SetConfigName("github-mcp-server")
27+
v.SetConfigName("github-mcp-server-config")
2828
v.SetConfigType("json")
2929
v.AddConfigPath(".")
3030

@@ -59,9 +59,9 @@ func TranslationHelper() (TranslationHelperFunc, func()) {
5959
}
6060
}
6161

62-
// dump translationKeyMap to a json file called github-mcp-server.json
62+
// dump translationKeyMap to a json file called github-mcp-server-config.json
6363
funcDumpTranslationKeyMap(translationKeyMapmap[string]string)error {
64-
file,err:=os.Create("github-mcp-server.json")
64+
file,err:=os.Create("github-mcp-server-config.json")
6565
iferr!=nil {
6666
returnfmt.Errorf("error creating file: %v",err)
6767
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp