-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #12015 - tedinski:fix-11999-recursive-deps, r=weihanglo
Build by PackageIdSpec, not name, to avoid ambiguity ### What does this PR try to resolve? Fixes #11999 I previously added this code to ensure `cargo install` will build the intended package, but it turns out to cause ambiguity in the case where a package depends on prior versions of itself. This ambiguity can be resolved by identifying the package to build by its pkg-spec, not name. ### How should we test and review this PR? A test case is included. I have additionally manually tested that, with this patch, the issue in #11999 is fixed and now installs correctly.
- Loading branch information
Showing
2 changed files
with
137 additions
and
9 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