Skip to content

Commit

Permalink
Do not fetch VCS deps when reference didn't change
Browse files Browse the repository at this point in the history
  • Loading branch information
maksbotan committed Sep 3, 2022
1 parent 58d2b99 commit 3612070
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/poetry/puzzle/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,12 @@ def complete_package(
# Retrieving constraints for deferred dependencies
for r in requires:
if r.is_direct_origin():
locked = self.get_locked(r)
# If lock file contains exactly the same URL and reference
# (commit hash) of dependency as is requested,
# do not analyze it again: nothing could have changed.
if locked is not None and locked.package.is_same_package_as(r):
continue
self.search_for_direct_origin_dependency(r)

optional_dependencies = []
Expand Down

0 comments on commit 3612070

Please sign in to comment.