pksunkara / cargo-workspaces

A tool for managing cargo workspaces and their crates, inspired by lerna
MIT License
465 stars 46 forks source link

`cargo install --locked cargo-workspaces` fails on stable and unstable Rust #168

Closed monoid closed 1 month ago

monoid commented 1 month ago

It fails to build because of outdated time version:

error[E0282]: type annotations needed for `Box<_>`
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.31/src/format_description/parse/mod.rs:83:9
   |
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |
help: consider giving `items` an explicit type, where the placeholders `_` are specified
   |
83 |     let items: Box<_> = format_items
   |              ++++++++

It builds successfully with time-0.3.36.

We use cargo install --locked ... in CI for more reproducible builds. Now it reproducibly fails.

$ cargo --version
cargo 1.80.0 (376290515 2024-07-16)
$ rustup show active-toolchain
stable-x86_64-unknown-linux-gnu (default)
monoid commented 1 month ago

Thanks! Works locally with cargo-workspaces-0.3.6.