Skip to content

Commit 001a665

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 a filename, without considering the extension, resulting in it trying to parse the binary itself as JSON.
1 parent 4f7077a commit 001a665

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/translations/translations.go

+3-3
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
func DumpTranslationKeyMap(translationKeyMap map[string]string) error {
64-
file, err := os.Create("github-mcp-server.json")
64+
file, err := os.Create("github-mcp-server-config.json")
6565
if err != nil {
6666
return fmt.Errorf("error creating file: %v", err)
6767
}

0 commit comments

Comments
 (0)