-
Notifications
You must be signed in to change notification settings - Fork 20
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
add TZ
env var for python devcontainer scripts
#1006
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ env = { | |
|
||
// Python: | ||
"LANG": "en_US.UTF-8", | ||
"TZ": "UTC", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: Could we set it in the devcontainer rather than in the Hermit env? I'd rather not change it locally (which is where I'm using Hermit from) and possibly chase a bug or have this weird unexplained inconsistency at some point 😅 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The issue is that the terminal environment is overridden by user devcontainer files, which are applied after the container is created (?). I'm afraid setting it in
This will only affect commands running inside the Slang repo. I'm not worried this will cause a regression, as |
||
|
||
// Rust: | ||
"RUST_BACKTRACE": "full", | ||
|
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.
From @alcuadrado (comment):
Given that the error was raised from the common std library
python3.11/zoneinfo/_tzpath.py
, I think setting it here for all modules would fix the issue for all other modules/commands, as any of them could also be usingzoneinfo
?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.
I don't really know how often
infra
uses python, so I don't understand which solution is better. I was just trying to actually find the root of the problem when I saw that alternative.