Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Issue 1140083005: Rewrite pub's version solver. (Closed)

Created:
5 years, 7 months ago by nweiz
Modified:
5 years, 7 months ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Rewrite pub's version solver. The idea of this change is to eagerly check, before selecting a package version, whether that version is compatible with the existing dependencies. This avoids a bunch of unnecessary backtracking, and makes the progression of the solver more comprehensible when R=rnystrom@google.com BUG= dartbug.com/17429 Committed: https://code.google.com/p/dart/source/detail?r=45799

Patch Set 1 #

Patch Set 2 : Nuke implicit deps. #

Total comments: 58

Patch Set 3 : Code review changes #

Patch Set 4 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+728 lines, -669 lines) Patch
M sdk/lib/_internal/pub/lib/src/package.dart View 1 2 5 chunks +31 lines, -3 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart View 1 2 3 10 chunks +355 lines, -486 lines 0 comments Download
D sdk/lib/_internal/pub/lib/src/solver/dependency_queue.dart View 1 chunk +0 lines, -150 lines 0 comments Download
A sdk/lib/_internal/pub/lib/src/solver/unselected_package_queue.dart View 1 2 1 chunk +149 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/lib/src/solver/version_selection.dart View 1 2 1 chunk +145 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/solver/version_solver.dart View 5 chunks +17 lines, -19 lines 0 comments Download
M sdk/lib/_internal/pub/test/get/path/nonexistent_dir_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/hosted/offline_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/implicit_barback_dependency_test.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/_internal/pub/test/version_solver_test.dart View 1 2 3 7 chunks +26 lines, -6 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
nweiz
5 years, 7 months ago (2015-05-14 00:15:51 UTC) #1
Bob Nystrom
This looks really nice. However, I really would like to have a test case or ...
5 years, 7 months ago (2015-05-14 18:09:39 UTC) #2
nweiz
Code review changes
5 years, 7 months ago (2015-05-14 22:03:57 UTC) #3
nweiz
> However, I really would like to have a test case or two that hits ...
5 years, 7 months ago (2015-05-14 22:08:01 UTC) #4
Bob Nystrom
> I realized while poking around with this that I'd broken the attempted solution > ...
5 years, 7 months ago (2015-05-14 22:13:02 UTC) #5
nweiz
Code review changes
5 years, 7 months ago (2015-05-14 22:33:19 UTC) #6
nweiz
5 years, 7 months ago (2015-05-14 22:33:43 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as 45799 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698