DioxusLabs / dioxus

Fullstack app framework for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
20.61k stars 791 forks source link

Nightly issue: dioxus-cli fails to build due to new Cargo.lock (version 4) format #3034

Open alex-tianhuang opened 1 week ago

alex-tianhuang commented 1 week ago

Problem

When starting a new dioxus project using dioxus-cli compiled on nightly, the build fails as the Cargo.lock version (=4) is newer than expected. Additionally, using dioxus-cli compiled from stable with any project that has this new Cargo.lock version (I'm trying to use it for a project which requires nightly)

Steps To Reproduce

  1. Install dioxus v0.5.7 using cargo install (nightly-aarch64-apple-darwin rustc)
  2. Make a project using dx new + dx serve OR
  3. Install dioxus v0.5.7 using cargo install (stable rustc)
  4. Run dx serve on an existing project which uses Cargo.lock version 4

Expected behavior

Dioxus serves the webpage

Screenshots Here are all the steps needed to reproduce the bug:

image

Here is the final failing build command with some traceback:

image

Here is a Cargo.lock generated by dx new (nightly compiled dioxus-cli):

image

Environment:

OlePaycxEu commented 3 days ago

Same problem here.

Environment:

GTime commented 10 hours ago

Same problem here.

Environment:

dx serve --platform fullstack
  👑 Build done.
| 💼 Waiting to start building the project...                                                 thread 'main' panicked at /home/siki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/manganis-cli-support-0.2.4/src/manifest.rs:51:51:
called `Result::unwrap()` on an `Err` value: Parse("parse error: invalid Cargo.lock format version: `4`\n")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace