Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[replace] breaks cargo test -p dependency #2641

Closed
gkoz opened this issue May 4, 2016 · 0 comments
Closed

[replace] breaks cargo test -p dependency #2641

gkoz opened this issue May 4, 2016 · 0 comments

Comments

@gkoz
Copy link
Contributor

gkoz commented May 4, 2016

$ 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
alexcrichton added a commit to alexcrichton/cargo that referenced this issue May 20, 2016
This was unfortunately ignoring errors which would helpfully tell you how to
rerun a command with a more precise specification.

Closes rust-lang#2641
bors added a commit that referenced this issue May 20, 2016
Don't throw away errors with `-p` arguments

This was unfortunately ignoring errors which would helpfully tell you how to
rerun a command with a more precise specification.

Closes #2641
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant