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

Issue 11635060: Add a validator for dependency version constraints. (Closed)

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

Description

Add a validator for dependency version constraints. BUG=7045 Committed: https://code.google.com/p/dart/source/detail?r=16415

Patch Set 1 #

Total comments: 14

Patch Set 2 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+388 lines, -14 lines) Patch
M utils/pub/entrypoint.dart View 3 chunks +5 lines, -10 lines 0 comments Download
M utils/pub/http.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M utils/pub/validator.dart View 2 chunks +3 lines, -1 line 0 comments Download
A utils/pub/validator/dependency.dart View 1 1 chunk +91 lines, -0 lines 0 comments Download
M utils/pub/version.dart View 5 chunks +24 lines, -0 lines 0 comments Download
M utils/tests/pub/test_pub.dart View 2 chunks +14 lines, -0 lines 0 comments Download
M utils/tests/pub/validator_test.dart View 1 5 chunks +248 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
nweiz
8 years ago (2012-12-20 22:55:07 UTC) #1
Bob Nystrom
Couple of nits/suggestions. LGTM. https://codereview.chromium.org/11635060/diff/1/utils/pub/validator/dependency.dart File utils/pub/validator/dependency.dart (right): https://codereview.chromium.org/11635060/diff/1/utils/pub/validator/dependency.dart#newcode29 utils/pub/validator/dependency.dart:29: // on it. Mention bug ...
8 years ago (2012-12-21 00:11:46 UTC) #2
nweiz
https://codereview.chromium.org/11635060/diff/1/utils/pub/validator/dependency.dart File utils/pub/validator/dependency.dart (right): https://codereview.chromium.org/11635060/diff/1/utils/pub/validator/dependency.dart#newcode29 utils/pub/validator/dependency.dart:29: // on it. On 2012/12/21 00:11:46, Bob Nystrom wrote: ...
8 years ago (2012-12-21 01:01:50 UTC) #3
Bob Nystrom
https://codereview.chromium.org/11635060/diff/1/utils/pub/validator/dependency.dart File utils/pub/validator/dependency.dart (right): https://codereview.chromium.org/11635060/diff/1/utils/pub/validator/dependency.dart#newcode55 utils/pub/validator/dependency.dart:55: warnings.add('Don\'t depend on "${ref.name}" from the ${ref.source.name} ' On ...
8 years ago (2012-12-21 01:48:06 UTC) #4
nweiz
8 years ago (2012-12-21 01:54:57 UTC) #5
https://codereview.chromium.org/11635060/diff/1/utils/pub/validator/dependenc...
File utils/pub/validator/dependency.dart (right):

https://codereview.chromium.org/11635060/diff/1/utils/pub/validator/dependenc...
utils/pub/validator/dependency.dart:55: warnings.add('Don\'t depend on
"${ref.name}" from the ${ref.source.name} '
On 2012/12/21 01:48:06, Bob Nystrom wrote:
> On 2012/12/21 01:01:50, nweiz wrote:
> > On 2012/12/21 00:11:46, Bob Nystrom wrote:
> > > I believe we do have package authors uploading packages with git
> dependencies.
> > > We've never told them not to do that. If pub is going to start suggesting
> > > otherwise, we should have a public discussion about it too.
> > 
> > I think it's very reasonable to discourage Git dependencies, especially now
> that
> > those packages can be easily uploaded to http://pub.dartlang.org. Not only
> does Git not
> > play well with version constraints, but a package having a Git dependency
> means
> > that no one can use it (even transitively) without having Git installed.
> > 
> > Since this is just a warning anyway, I think it's fine to put in. I'm fine
> with
> > mentioning it on the mailing list as well if you want.
> > 
> > Empirically, only two packages on http://pub.dartlang.org have ever had Git
> > dependencies, and of those only one (buckshot) still does. I suspect this is
> > accidental, as the Git packages it depends on have their most recent
versions
> on
> > http://pub.dartlang.org, and previous versions of buckshot used hosted
> dependencies.
> 
> That sounds reasonable to me. We should probably document this somewhere, too.

Filed 7553 to track that.

Powered by Google App Engine
This is Rietveld 408576698