killercup / killercup/cargo-edit

recursive dependency update failed

Open
#914 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cargo-upgrade
Dominant language
Rust
Stars
3.5k
Forks
166
PR merge metrics
No merged PRs in 30d

Description

cargo-edit version: 0.13.0
cargo version: 1.82.0

When running cargo upgrade --incompatible with https://github.com/NixOS/rfc39/tree/ab3b4ac953d011d2fae04c252718dc81727a5a5d (and the patch section removed from the Cargo.toml), the following error occurs:

    Checking rfc39's dependencies
name        old req compatible latest  new req
====        ======= ========== ======  =======
futures     0.1.28  0.1.31     0.3.31  0.3.31
hubcaps     0.5.0   0.5.0      0.6.2   0.6.2
hyper       0.12.33 0.12.36    1.5.1   1.5.1
lazy_static 1.3.0   1.5.0      1.5.0   1.5.0
serde       1.0.98  1.0.215    1.0.215 1.0.215
serde_json  1.0.40  1.0.133    1.0.133 1.0.133
slog        2.5     2.7.0      2.7.0   2.7
sloggers    0.3.2   0.3.6      2.2.0   2.2.0
structopt   0.2.18  0.2.18     0.3.26  0.3.26
tokio       0.1.22  0.1.22     1.41.1  1.41.1
slog-scope  4.1.2   4.4.0      4.4.0   4.4.0
slog-stdlog 4.0.0   4.1.1      4.1.1   4.1.1
prometheus  0.7     0.7.0      0.13.4  0.13
   Upgrading recursive dependencies
error: no matching package named `wasm-bindgen` found
location searched: registry `crates-io`
required by package `reqwest v0.10.10`
    ... which satisfies dependency `reqwest = "^0.10"` of package `hubcaps v0.6.2`
    ... which satisfies dependency `hubcaps = "^0.6.2"` of package `rfc39 v0.1.0 (/Users/winter/src/rfc39)`
As a reminder, you're using offline mode (--offline) which can sometimes cause surprising resolution failures, if this error is too confusing you may wish to retry without the offline flag.
Error: recursive dependency update failed

The Cargo.toml and Cargo.lock file are touched at this point, and a cargo update reports no errors.

Not entirely sure what's going on here, but figured I'd leave it here just in case this is an issue with cargo-edit.

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

Reproduce cargo upgrade --incompatible with cargo-edit 0.13.0, cargo 1.82.0, the referenced rfc39 revision, and offline mode. Compare the changes to Cargo.toml and Cargo.lock, then inspect the recursive dependency update path to determine why the missing wasm-bindgen resolution produces this failure; done means the command handles this case without an incorrect update failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.