-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass LANG=C.UTF-8
to environment
#1476
Conversation
|
I want to let you know: on: push
env:
LANG: de_DE.utf8
jobs:
_:
runs-on: ubuntu-latest
steps:
- run: env |
Hi thanks for the feedback !
Ha ok, I thought the env map was later merged, and workflow envs were overidden. Line 72 in 7754ba7
Could you point me to a better place for doing that.
Ah good point ! I have no idea about that. I don't know how windows runners operate. What would be the best course of action if Windows runner don't. I'm a novice in Go, so I'm happy for any advice in the current matter. |
I think you can add a line here: Line 227 in 7754ba7
this code only runs if you use a linux docker container and not running directly on windows. This should also allow overriding it via cli/workflow, but this has to be tested manually. |
Fixes: nektos#1308 Signed-off-by: Brice Dutheil <[email protected]>
Thanks @ChristopherHX |
Codecov Report
@@ Coverage Diff @@
## master #1476 +/- ##
==========================================
+ Coverage 57.50% 60.44% +2.93%
==========================================
Files 32 44 +12
Lines 4594 7000 +2406
==========================================
+ Hits 2642 4231 +1589
- Misses 1729 2463 +734
- Partials 223 306 +83
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works now as expected from my side. Both overriding the default LANG
from cli and workflow file works.
In order to use
act
with workflows where any tools, like build tools, depends on the locale beingUTF-8
, one must pass via command line via the--env
option.However the Github Actions runner already passes
LANG=C.UTF-8
by default, which makes the need to explicitly pass this variable via command line un-intuitive.The PR here aims to make
act
pass that environment variable by default.Fixes: #1308
Possibly #639