Closed appaquet closed 2 years ago
Oh, I will fix right now.
About ref: https://github.com/x-hgg-x/tz-rs/issues/32
@appaquet Thx for your report.
Now, fix with https://github.com/baoyachi/shadow-rs/pull/102
Upgarde shadow-rs version
...
[dependencies]
shadow-rs = "0.13.1"
...
Last release (v0.13.0) doesn't build anymore when using cross.
Trying to build the examples from the repository with:
cross build -p example_shadow --target x86_64-unknown-linux-gnu
leads to:
The reasons it fails is that the
tz-rs
crates tries to parse the timezone data from/etc/localtime
, which probably doesn't exist in cross's Docker image. See: https://github.com/x-hgg-x/tz-rs/blob/master/src/timezone/mod.rs#L518A good alternative for me would be to expose a way to either fallback to UTC or simply force UTC.
Thanks!