Files
meteor/packages
David Glasser 75fcdf5d3e Refactor ConstraintSolver.Resolver
Factor out the "state" into its own class, ResolverState.  The big
difference from the previous state object: it actually explicitly tracks
the set of potential UnitVersions for every active dependency.  This
essentially replaces the DependencyList class.

Because we always know exactly how many options there are for a given
dependency, we can both generalize and simplify the "propagate
transitive exact deps" optimization.  That optimization only worked on
"foo@=1.2.3" dependencies, which meant it didn't apply in any other
situation where there was only one possible package to choose. But there
are a whole lot of other situations like that: local packages, packages
that just don't have many versions, packages that already have a lot of
constraints applied to them, etc.  By tracking the set of potential
alternatives, we can just make sure to always expand 1-alternative units
first. We also maintain the aspect of the optimization where we don't
need to call the cost function until we've actually gotten to a state
with multiple neighbors.

This keeps #2410 fixed as well.

I've removed the constraintAncestor support as part of this refactoring,
so some error messages may be worse than they were before. But this
should set me up pretty well to improve error messages tomorrow.
2014-08-21 01:28:55 -07:00
..
2014-08-18 20:48:43 -07:00
2014-08-18 20:48:43 -07:00
2014-08-15 12:34:47 -07:00
2014-08-15 12:34:47 -07:00
2014-08-19 17:31:18 -07:00
2014-08-15 12:34:47 -07:00
2014-08-15 12:34:47 -07:00
2014-08-15 12:34:47 -07:00
2014-08-15 12:34:47 -07:00
2014-08-19 17:31:18 -07:00
2014-08-15 12:34:47 -07:00
2014-08-20 11:53:03 -07:00
2014-08-08 00:06:55 -07:00
2014-08-19 17:31:18 -07:00
2014-08-15 12:34:47 -07:00
2014-08-18 20:48:43 -07:00
2014-07-30 17:40:44 -07:00
2014-08-08 00:06:55 -07:00
2014-08-15 12:34:47 -07:00
2014-08-15 12:34:47 -07:00
2014-08-18 20:48:43 -07:00
2014-07-21 16:18:25 -07:00
2014-08-15 12:34:47 -07:00