forked from rust-lang/cargo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(replace): Ensure PackageIdSpec respects version 'build' field
- Loading branch information
Showing
3 changed files
with
26 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1350,7 +1350,7 @@ note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace | |
} | ||
|
||
#[cargo_test] | ||
fn override_different_metadata_2() { | ||
fn override_respects_spec_metadata() { | ||
Package::new("bar", "0.1.0+a").publish(); | ||
|
||
let bar = git::repo(&paths::root().join("override")) | ||
|
@@ -1387,12 +1387,22 @@ fn override_different_metadata_2() { | |
.with_stderr( | ||
"\ | ||
[UPDATING] `dummy-registry` index | ||
[UPDATING] git repository `[..]` | ||
[CHECKING] bar v0.1.0+a (file://[..]) | ||
[CHECKING] foo v0.0.1 ([CWD]) | ||
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] | ||
[WARNING] package replacement is not used: https://github.com/rust-lang/crates.io-index#[email protected]+notTheBuild | ||
[DOWNLOADING] crates ... | ||
[DOWNLOADED] bar v0.1.0+a (registry `dummy-registry`) | ||
[CHECKING] bar v0.1.0+a | ||
[CHECKING] foo v0.0.1 ([..]/foo) | ||
[..] | ||
[..] | ||
[..] | ||
[..] | ||
[..] | ||
[..] | ||
[..] | ||
error: could not compile `foo` (lib) due to previous error | ||
", | ||
) | ||
.with_status(101) | ||
.run(); | ||
} | ||
|
||
|