Skip to content

Commit

Permalink
disambiguate direct dependencies in show-outdated
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby authored and neersighted committed Jul 24, 2022
1 parent 3e60aed commit 8201617
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/poetry/console/commands/show.py
Expand Up @@ -504,7 +504,7 @@ def find_latest_package(
requires = root.all_requires

for dep in requires:
if dep.name == package.name:
if dep.name == package.name and dep.source_type == package.source_type:
provider = Provider(root, self.poetry.pool, NullIO())
return provider.search_for_direct_origin_dependency(dep)

Expand Down
2 changes: 1 addition & 1 deletion src/poetry/puzzle/provider.py
Expand Up @@ -242,7 +242,7 @@ def search_for_direct_origin_dependency(self, dependency: Dependency) -> Package

else:
raise RuntimeError(
f"Unknown direct dependency type {dependency.source_type}"
f"{dependency}: unknown direct dependency type {dependency.source_type}"
)

if dependency.is_vcs():
Expand Down

0 comments on commit 8201617

Please sign in to comment.