Cargo: All possible versions conflict with previously selected versions of...

Created on 5 Dec 2017  ·  3Comments  ·  Source: rust-lang/cargo

As per https://github.com/shepmaster/sxd-document/pull/53#issuecomment-349184896 I am reporting an issue where updating a crate results in

   Updating registry `https://github.com/rust-lang/crates.io-index`
error: failed to select a version for `sxd-document` (required by `sxd-xpath`):
all possible versions conflict with previously selected versions of `sxd-document`
  version 0.2.5 in use by sxd-document v0.2.5
  possible versions to select: 0.2.4

Cargo.lock and Cargo.toml

This issue has been resolved, reporting it in case it is something that needs to be fixed in cargo.

Most helpful comment

Running cargo update -p sxd-document did seem to solve the problem when I was using the provided Cargo.toml and Cargo.lock files.

All 3 comments

Running cargo update -p sxd-document did seem to solve the problem when I was using the provided Cargo.toml and Cargo.lock files.

I think this may be a dupe of https://github.com/rust-lang/cargo/issues/4127?

Was this page helpful?
0 / 5 - 0 ratings