Merge pull request #8275 from uranusjr/very-large-round-count

Set max_rounds to an incredibly large number
This commit is contained in:
Paul Moore 2020-05-20 15:21:46 +01:00 committed by GitHub
commit 9999f0ec09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -132,7 +132,10 @@ class Resolver(BaseResolver):
resolver = RLResolver(provider, reporter)
try:
self._result = resolver.resolve(requirements)
try_to_avoid_resolution_too_deep = 2000000
self._result = resolver.resolve(
requirements, max_rounds=try_to_avoid_resolution_too_deep,
)
except ResolutionImpossible as e:
error = self.factory.get_installation_error(e)