Skip to content

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

Closed
nex3 opened this issue Feb 19, 2014 · 6 comments
Closed

Pub's version resolution goes exponential on a simple pubspec #16961

nex3 opened this issue Feb 19, 2014 · 6 comments
Assignees

Comments

@nex3
Copy link
Member

nex3 commented Feb 19, 2014

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.

@munificent
Copy link
Member

Removed Priority-Unassigned label.
Added Priority-Medium label.

@munificent
Copy link
Member

Set owner to @munificent.
Added Started label.

@munificent
Copy link
Member

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.

@nex3
Copy link
Member Author

nex3 commented May 4, 2015

Issue #23347 has been merged into this issue.

@nex3
Copy link
Member Author

nex3 commented May 4, 2015

I have some ideas for how to improve this, so I'm going to spend some time on it.


Set owner to @nex3.
Added Started label.

@DartBot
Copy link

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/pub#874.

@DartBot DartBot closed this as completed Jun 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants