Closed
Description
Problem
I'm patching one of my dependencies (mysql-async
) to a branch on github. The crate on this branch requires pin-project:^0.4.0-alpha.10
. I'm also using hyper
, which requires pin-project:=0.4.0-alpha.7
. This in itself causes compilation failure:
versions that meet the requirements ^0.4.0-alpha.10 are: 0.4.0-alpha.10
all possible versions conflict with previously selected packages.
previously selected package pin-project v0.4.0-alpha.7
... which is depended on by hyper v0.13.0-alpha.1`
... which is depended on by hyper-tls v0.4.0-alpha.1`
... which is depended on by projectname
failed to select a version for `pin-project` which could resolve this conflict
So I tried to patch it to the current master branch like so:
[patch.crates-io]
pin-project = { git = "https://github.com/taiki-e/pin-project", version = "^0.4.0-alpha.10" }
This results in the following panic:
thread 'main' panicked at 'assertion failed: prev.is_none()', src\tools\cargo\src/cargo\core\resolver\context.rs:153:25
https://github.com/rust-lang/cargo/blob/master/src/cargo/core/resolver/context.rs#L153
Steps
- Have these incompatible dependencies
- Delete
Cargo.lock
(not sure if required) - Execute
cargo update/run/check
Notes
Output of cargo version
: cargo 1.39.0-nightly (22f7dd049 2019-08-27)
.
Compiler: rustc 1.39.0-nightly (c6e9c76c5 2019-09-04)
with nightly-x86_64-pc-windows-msvc (default)
.
Unfortunately I'm unable to share the erroring code nor have I created a minimized example.