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

Issue 10854152: Allow `pub install` and `pub update` to update dependers. (Closed)

Created:
8 years, 4 months ago by nweiz
Modified:
8 years, 4 months ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Allow `pub install` and `pub update` to update dependers. If the pubspec has a new dependency which causes an incompatibility with the locked packages' version constraints, `pub install` will now unlock packages one by one until a compatible version graph can be found. `pub update <package>` will now always update the given package to its latest version, even if that requires updating locked packages that depend on it transitively. If no amount of updating will make the latest version valid, an exception will be thrown. Committed: https://code.google.com/p/dart/source/detail?r=10779

Patch Set 1 #

Patch Set 2 : Minor changes #

Total comments: 19

Patch Set 3 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+503 lines, -32 lines) Patch
M utils/pub/entrypoint.dart View 1 2 1 chunk +5 lines, -6 lines 0 comments Download
M utils/pub/version_solver.dart View 1 2 9 chunks +140 lines, -26 lines 0 comments Download
M utils/tests/pub/pub_test.dart View 1 2 2 chunks +358 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
nweiz
8 years, 4 months ago (2012-08-15 00:15:08 UTC) #1
Bob Nystrom
https://chromiumcodereview.appspot.com/10854152/diff/2001/utils/pub/version_solver.dart File utils/pub/version_solver.dart (right): https://chromiumcodereview.appspot.com/10854152/diff/2001/utils/pub/version_solver.dart#newcode83 utils/pub/version_solver.dart:83: * solving the versions, even if an earlier compatible ...
8 years, 4 months ago (2012-08-15 17:48:16 UTC) #2
nweiz
https://chromiumcodereview.appspot.com/10854152/diff/2001/utils/pub/version_solver.dart File utils/pub/version_solver.dart (right): https://chromiumcodereview.appspot.com/10854152/diff/2001/utils/pub/version_solver.dart#newcode85 utils/pub/version_solver.dart:85: void useBestVersion(String package) { On 2012/08/15 17:48:16, Bob Nystrom ...
8 years, 4 months ago (2012-08-15 21:25:42 UTC) #3
Bob Nystrom
8 years, 4 months ago (2012-08-15 22:23:52 UTC) #4
LGTM!

Powered by Google App Engine
This is Rietveld 408576698