Skip to content

Commit

Permalink
fix(source): Don't warn about unreferenced duplicate packages
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jul 12, 2024
1 parent 8937a01 commit a7db16f
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions src/cargo/sources/path.rs
Original file line number Diff line number Diff line change
@@ -323,6 +323,7 @@ impl<'gctx> Source for RecursivePathSource<'gctx> {
for s in self
.packages
.iter()
.filter(|(pkg_id, _)| pkg_id.name() == dep.package_name())
.map(|(pkg_id, pkgs)| {
first_package(*pkg_id, pkgs, &mut self.warned_duplicate, self.gctx)
})
4 changes: 0 additions & 4 deletions tests/testsuite/git.rs
Original file line number Diff line number Diff line change
@@ -1283,10 +1283,6 @@ expected `.`, `]`
2 | [package
| ^
|
[WARNING] skipping duplicate package `duplicate v0.5.0 ([ROOTURL]/dep#[..])`:
[ROOT]/home/.cargo/git/checkouts/dep-[HASH]/[..]/duplicate2/Cargo.toml
in favor of [ROOT]/home/.cargo/git/checkouts/dep-[HASH]/[..]/duplicate1/Cargo.toml
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
[RUNNING] `target/debug/foo`

0 comments on commit a7db16f

Please sign in to comment.