Skip to content

Commit 3612070

Browse files
committed
Do not fetch VCS deps when reference didn't change
1 parent 58d2b99 commit 3612070

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/poetry/puzzle/provider.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,12 @@ def complete_package(
581581
# Retrieving constraints for deferred dependencies
582582
for r in requires:
583583
if r.is_direct_origin():
584+
locked = self.get_locked(r)
585+
# If lock file contains exactly the same URL and reference
586+
# (commit hash) of dependency as is requested,
587+
# do not analyze it again: nothing could have changed.
588+
if locked is not None and locked.package.is_same_package_as(r):
589+
continue
584590
self.search_for_direct_origin_dependency(r)
585591

586592
optional_dependencies = []

0 commit comments

Comments
 (0)