redhat-developer / s2i-dotnetcore

.NET Core OpenShift images
Apache License 2.0
112 stars 192 forks source link

Stop bash from printing locale warnings when invoked through an Exec Task. #480

Closed tmds closed 10 months ago

tmds commented 11 months ago

MSBuild Exec Tasks set the locale to en_US. Because that locale is not available in our images, it causes bash to print warnings to standard error. This error output will even cause the Task to fail when it has LogStandardErrorAsError set.

This installs the en_US locale to stop bash from printing these warnings.

Fixes https://github.com/redhat-developer/s2i-dotnetcore/issues/478.