openwhisk
openwhisk copied to clipboard
Go cli not working anymore on German MAC
@dubeejw Since the merges of the i18n of the go-cli, my deployment is not working anymore, because the go-cli exits on any commands with the following error:
panic: no supported languages found []string{"de_DE"}
Environment details:
- local deployment (Mac)
Steps to reproduce the issue:
- Execute any command in go-cli or do bluewhisk deployment.
Provide the expected results and outputs:
The expected output is, that the command works like before the i18n.
Provide the actual results and outputs:
panic: no supported languages found []string{"de_DE"}
goroutine 1 [running]:
panic(0x4fd580, 0xc820013540)
/usr/local/go/src/runtime/panic.go:481 +0x3e6
github.com/nicksnyder/go-i18n/i18n/bundle.(*Bundle).MustTfunc(0xc8200127d0, 0x5bb838, 0x5, 0x0, 0x0, 0x0, 0xe)
/src/github.com/nicksnyder/go-i18n/i18n/bundle/bundle.go:156 +0xa4
github.com/nicksnyder/go-i18n/i18n.MustTfunc(0x5bb838, 0x5, 0x0, 0x0, 0x0, 0x5)
/src/github.com/nicksnyder/go-i18n/i18n/i18n.go:130 +0x55
_/src/github.com/go-whisk/wski18n.InitWithLocale(0x5bb838, 0x5)
/src/github.com/go-whisk/wski18n/i18n.go:90 +0x9c
_/src/github.com/go-whisk/wski18n.Init(0x9515e0, 0x867008, 0x0, 0x0)
/src/github.com/go-whisk/wski18n/i18n.go:81 +0x59
_/src/github.com/go-whisk/wski18n.init.1()
/src/github.com/go-whisk/wski18n/i18n.go:57 +0x5c
_/src/github.com/go-whisk/wski18n.init()
/src/github.com/go-whisk/wski18n/i18n_resources.go:445 +0xf32
_/src/github.com/go-whisk/whisk.init()
/src/github.com/go-whisk/whisk/wskerror.go:151 +0x53
main.init()
/src/github.com/go-whisk-cli/main.go:100 +0x5b
@dubeejw - As a stop gap until the CLI PII is fully globalized, in the Locale() function, just return the DEFAULT_LOCALE (in both go-whisk and go-whisk-cli).