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

Issue 173113004: Improve the "pub lish" warnings about dependency constraints. (Closed)

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

Description

Improve the "pub lish" warnings about dependency constraints. This adds a warning for a constraint that only allows a single version and warnings for constraints with no upper bound or no lower bound. It also improves the upper bound on suggested pre-1.0 constraints to follow the current Dart team practice and fixes a bug in [VersionRange.isAny]. R=rnystrom@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=32867

Patch Set 1 #

Total comments: 14

Patch Set 2 : code review #

Patch Set 3 : code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -12 lines) Patch
M sdk/lib/_internal/pub/lib/src/validator/dependency.dart View 1 2 4 chunks +73 lines, -8 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/version.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/validator/dependency_test.dart View 3 chunks +146 lines, -3 lines 0 comments Download
M sdk/lib/_internal/pub/test/version_test.dart View 1 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
nweiz
6 years, 10 months ago (2014-02-20 00:36:40 UTC) #1
Bob Nystrom
https://codereview.chromium.org/173113004/diff/1/sdk/lib/_internal/pub/lib/src/validator/dependency.dart File sdk/lib/_internal/pub/lib/src/validator/dependency.dart (right): https://codereview.chromium.org/173113004/diff/1/sdk/lib/_internal/pub/lib/src/validator/dependency.dart#newcode29 sdk/lib/_internal/pub/lib/src/validator/dependency.dart:29: _warnAboutSingleVersionConstraint(dependency); I think a single version constraint is potentially ...
6 years, 10 months ago (2014-02-20 01:22:49 UTC) #2
nweiz
https://codereview.chromium.org/173113004/diff/1/sdk/lib/_internal/pub/lib/src/validator/dependency.dart File sdk/lib/_internal/pub/lib/src/validator/dependency.dart (right): https://codereview.chromium.org/173113004/diff/1/sdk/lib/_internal/pub/lib/src/validator/dependency.dart#newcode29 sdk/lib/_internal/pub/lib/src/validator/dependency.dart:29: _warnAboutSingleVersionConstraint(dependency); On 2014/02/20 01:22:49, Bob Nystrom wrote: > I ...
6 years, 10 months ago (2014-02-20 01:48:24 UTC) #3
Bob Nystrom
LGTM, but, again, we need to document this <1.0.0 semantic version policy somewhere. https://codereview.chromium.org/173113004/diff/1/sdk/lib/_internal/pub/lib/src/validator/dependency.dart File ...
6 years, 10 months ago (2014-02-20 18:10:20 UTC) #4
nweiz
https://codereview.chromium.org/173113004/diff/1/sdk/lib/_internal/pub/lib/src/validator/dependency.dart File sdk/lib/_internal/pub/lib/src/validator/dependency.dart (right): https://codereview.chromium.org/173113004/diff/1/sdk/lib/_internal/pub/lib/src/validator/dependency.dart#newcode29 sdk/lib/_internal/pub/lib/src/validator/dependency.dart:29: _warnAboutSingleVersionConstraint(dependency); On 2014/02/20 18:10:21, Bob Nystrom wrote: > On ...
6 years, 10 months ago (2014-02-20 19:32:19 UTC) #5
nweiz
6 years, 10 months ago (2014-02-20 19:36:00 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 manually as r32867 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698