]> git.lizzy.rs Git - rust.git/commitdiff
Merge #3819
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Thu, 2 Apr 2020 07:39:46 +0000 (07:39 +0000)
committerGitHub <noreply@github.com>
Thu, 2 Apr 2020 07:39:46 +0000 (07:39 +0000)
3819: Unique package by name and version. r=matklad a=o0Ignition0o

This commit is a fixup of #3781 I introduced a bug by using a PackageId to refer to a crate when its name conflicts with a dependency.
It turns out the package id currently is `name version path` while cargo expects `name:version` as argument eg:
Cargo command with a `PackageId`:
```
> Executing task: cargo test --package 'config 0.1.0 (path+file:///Users/ignition/Projects/oss/config)' --test default -- test_with_name --exact --nocapture <
```
Cargo command with `name:version`:
```
> Executing task: cargo test --package 'config:0.1.0' --test default -- test_with_name --exact --nocapture <
```

Co-authored-by: o0Ignition0o <jeremy.lempereur@gmail.com>

Trivial merge