-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Pub's version resolution goes exponential on a simple pubspec #16961
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Removed Priority-Unassigned label. |
Set owner to @munificent. |
I spent some time on this, but wasn't able to come up with any simple heuristics or techniques that help. Moving on for now. Added Accepted label. |
Issue #23347 has been merged into this issue. |
This was referenced Jun 3, 2015
Closed
This was referenced Jun 4, 2015
This issue has been moved to dart-lang/pub#874. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following pubspec causes pub's version resolution to go exponential:
name: app
dependencies:
intl: 0.9.0
polymer: "<=0.9.5"
This happens as of 1.2.0-edge.32615; the exponential churn involves pub's barback constraint, so it may change in future versions. The same pattern should persist, though.
This is caused by a conflicting constraint (intl and recent stack_trace versions have disjoint constraints on path), and compounded by the fact that pub tries to backtrack through every archived version of polymer. We may be able to mitigate this behavior by more aggressively checking for disjoint constraints; we may not be able to avoid checking all older polymer versions, but we can quickly discard them by noticing that their barback constraint is disjoint with pub's.
The text was updated successfully, but these errors were encountered: