baoyachi / shadow-rs

A build-time information stored in your rust project.(binary,lib,cdylib,dylib)
https://docs.rs/shadow-rs
MIT License
444 stars 40 forks source link

errors building nushell with shadow-rs #149

Closed fdncred closed 1 month ago

fdncred commented 7 months ago

I keep getting things like this on a particular Windows 10 system intermittently. Any ideas what's going on? I'm not sure how to reproduce it on demand.

❯ cargo install --path . --features=dataframe,extra                                                                                                                                09:10:00
  Installing nu v0.89.1 (C:\Users\us991808\source\repos\forks\nushell)
    Updating git repository `https://github.com/nushell/reedline`
    Updating crates.io index
   Compiling tokio-util v0.7.10
   Compiling nu-cmd-lang v0.89.1 (C:\Users\us991808\source\repos\forks\nushell\crates\nu-cmd-lang)
   Compiling polars-io v0.36.2
error: failed to run custom build command for `nu-cmd-lang v0.89.1 (C:\Users\us991808\source\repos\forks\nushell\crates\nu-cmd-lang)`

Caused by:
  process didn't exit successfully: `c:\cartar\release\build\nu-cmd-lang-7d0dc08dde8b60fc\build-script-build` (exit code: 101)
  --- stdout
  cargo:rustc-env=NU_COMMIT_HASH=2e5a8579838bd3e3721db753e52b5042a2e2b0ea
  cargo:rerun-if-env-changed=SOURCE_DATE_EPOCH

  --- stderr
  thread 'main' panicked at C:\Users\us991808\.cargo\registry\src\index.crates.io-6f17d22bba15001f\shadow-rs-0.26.1\src\date_time.rs:77:76:
  called `Result::unwrap()` on an `Err` value: InvalidComponent("offset_second")
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
baoyachi commented 1 month ago

Hi @fdncred please try use new publised version

[dependencies]
...
shadow-rs = "0.30.0"