rust-lang / rust-lang/cargo

-Zminimal-versions hangs (takes >2 hours) to resolve dep graph

Open
#8,539 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-dependency-resolution C-bug S-needs-design Z-minimal-versions
Dominant language
Rust
Stars
15.5k
Forks
3k
Avg merge
23h 30m
Merged PRs (30d)
51

Description

I have a Cargo.toml with around 1000 dependencies from one of the devs. When I run cargo update -Zminimal-versions on the crate, Resolving dependency graph... was not done after more than 2 hours.

cargo 1.46.0-nightly (4f74d9b2a 2020-07-08)

Cargo.toml.txt

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running cargo update -Zminimal-versions with the attached Cargo.toml.txt and confirm whether dependency resolution remains unfinished. Read the Cargo dependency-resolution area responsible for this command; done means the graph resolves successfully without taking hours on the reported manifest.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.