Skip to content

[replace] breaks cargo test -p dependency #2641

@gkoz

Description

@gkoz
$ cargo -V
cargo 0.11.0-nightly (afac7fc 2016-04-27)
$ echo '
[replace]
"libc:0.2.11" = { path = "../libc" }
' >> Cargo.toml
$ cargo test -p libc
error: could not find package matching spec `libc`

STR

cargo new libc
sed -i'' 's/0\.1\.0/0.2.11/' libc/Cargo.toml 
cargo new foo
cd foo
cat <<EOF >> Cargo.toml
[dependencies.libc]
version = "=0.2.11"

[replace]
"libc:0.2.11" = { path = "../libc" }
EOF
cargo build
cargo test -p libc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions