Closed
Description
Problem
I am not certain this is a bug, but at least it is very surprising to me:
- Using workspaces with multiple crates
a
andb
b
depends ona
, usinga = {version = "^0.1", path = "../a"}
- All is fine, e.g
cargo test --all
works - Bumping
a
to a prerelease of0.1.1-alpha.0
triggers the following error
$ cargo test --all
error: no matching package named `a` found
location searched: /Users/dignifiedquire/opensource/cargo-workspace-prerelease/a
perhaps you meant: a
required by package `b v0.1.0 (/Users/dignifiedquire/opensource/cargo-workspace-prerelease/b)`
Steps
- Clone https://github.com/dignifiedquire/cargo-workspace-prerelease-bug
- Run
cargo test --all
Possible Solution(s)
It would be great if it either worked, or at least the error message was more clear as to what the actual problem is.
Notes
Output of cargo version
:
cargo version
cargo 1.36.0-nightly (c4fcfb725 2019-05-15)