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

Issue 11737013: Validate that a package doesn't depend on itself. (Closed)

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

Description

Validate that a package doesn't depend on itself. BUG=7045 Committed: https://code.google.com/p/dart/source/detail?r=16614

Patch Set 1 #

Total comments: 6

Patch Set 2 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -0 lines) Patch
M utils/pub/validator/dependency.dart View 1 1 chunk +8 lines, -0 lines 0 comments Download
M utils/tests/pub/validator_test.dart View 1 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
nweiz
7 years, 11 months ago (2013-01-03 02:30:16 UTC) #1
Bob Nystrom
https://codereview.chromium.org/11737013/diff/1/utils/pub/validator/dependency.dart File utils/pub/validator/dependency.dart (right): https://codereview.chromium.org/11737013/diff/1/utils/pub/validator/dependency.dart#newcode38 utils/pub/validator/dependency.dart:38: 'automatically.'); I find the future tense here a bit ...
7 years, 11 months ago (2013-01-03 20:52:45 UTC) #2
nweiz
https://codereview.chromium.org/11737013/diff/1/utils/pub/validator/dependency.dart File utils/pub/validator/dependency.dart (right): https://codereview.chromium.org/11737013/diff/1/utils/pub/validator/dependency.dart#newcode38 utils/pub/validator/dependency.dart:38: 'automatically.'); On 2013/01/03 20:52:45, Bob Nystrom wrote: > I ...
7 years, 11 months ago (2013-01-03 21:08:12 UTC) #3
Bob Nystrom
LGTM! https://codereview.chromium.org/11737013/diff/1/utils/tests/pub/validator_test.dart File utils/tests/pub/validator_test.dart (right): https://codereview.chromium.org/11737013/diff/1/utils/tests/pub/validator_test.dart#newcode538 utils/tests/pub/validator_test.dart:538: {'hosted': 'foo'} On 2013/01/03 21:08:12, nweiz wrote: > ...
7 years, 11 months ago (2013-01-03 21:56:17 UTC) #4
nweiz
7 years, 11 months ago (2013-01-03 22:18:22 UTC) #5
https://codereview.chromium.org/11737013/diff/1/utils/tests/pub/validator_tes...
File utils/tests/pub/validator_test.dart (right):

https://codereview.chromium.org/11737013/diff/1/utils/tests/pub/validator_tes...
utils/tests/pub/validator_test.dart:538: {'hosted': 'foo'}
On 2013/01/03 21:56:17, Bob Nystrom wrote:
> On 2013/01/03 21:08:12, nweiz wrote:
> > On 2013/01/03 20:52:45, Bob Nystrom wrote:
> > > Shouldn't this be "test_pkg"?
> > 
> > Yes. The fact that this didn't have a version constraint caused a different
> > error, hence the false positive of this test. I've added a version
constraint
> as
> > well.
> 
> That makes me wonder if the expect should be more precise here so you can
ensure
> you get the validation warning you actually want.

I'm not a big fan of searching for strings within error messages. I think having
validator-level granularity will be good enough most of the time.

Powered by Google App Engine
This is Rietveld 408576698