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

Issue 887483002: Don't crash 'pub get' if a dev dependency is broken. (Closed)

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

Description

Don't crash 'pub get' if a dev dependency is broken. We were validating that the dependencies and dev_dependencies had no overlap whenever we accessed [Pubspec.dependencies], but this meant that we had to parse the dev_dependencies even if they were going unused. If that parse failed, it could stop an entire "pub get" from working. Now we only do this validation when [Pubspec.devDependencies] is accessed. This also fixes a bug in where, if a pubspec from outside the filesystem (e.g. a hosted dependency) has a relative path dependency, [PathSource.parseDescription] would crash. Although this shouldn't happen since we don't parse the dev dependencies anymore, [PathSource] will now handle it more gracefully if it does. Finally, this also works around an async_await bug that was causing stack traces to be truncated. R=rnystrom@google.com BUG=22194 Committed: https://code.google.com/p/dart/source/detail?r=43267

Patch Set 1 #

Total comments: 8

Patch Set 2 : Code review changes #

Patch Set 3 : Code review changes #

Messages

Total messages: 7 (0 generated)
nweiz
5 years, 10 months ago (2015-01-28 22:31:44 UTC) #1
Bob Nystrom
https://codereview.chromium.org/887483002/diff/1/sdk/lib/_internal/pub/lib/src/pubspec.dart File sdk/lib/_internal/pub/lib/src/pubspec.dart (right): https://codereview.chromium.org/887483002/diff/1/sdk/lib/_internal/pub/lib/src/pubspec.dart#newcode107 sdk/lib/_internal/pub/lib/src/pubspec.dart:107: _checkDependencyOverlap(dependencies, _devDependencies); What do you think about calling this ...
5 years, 10 months ago (2015-01-28 23:42:00 UTC) #2
nweiz
Code review changes
5 years, 10 months ago (2015-01-29 01:13:57 UTC) #3
nweiz
Code review changes
5 years, 10 months ago (2015-01-29 01:23:05 UTC) #4
nweiz
https://codereview.chromium.org/887483002/diff/1/sdk/lib/_internal/pub/lib/src/pubspec.dart File sdk/lib/_internal/pub/lib/src/pubspec.dart (right): https://codereview.chromium.org/887483002/diff/1/sdk/lib/_internal/pub/lib/src/pubspec.dart#newcode107 sdk/lib/_internal/pub/lib/src/pubspec.dart:107: _checkDependencyOverlap(dependencies, _devDependencies); On 2015/01/28 23:42:00, Bob Nystrom wrote: > ...
5 years, 10 months ago (2015-01-29 01:26:22 UTC) #5
Bob Nystrom
lgtm
5 years, 10 months ago (2015-01-29 01:33:33 UTC) #6
nweiz
5 years, 10 months ago (2015-01-29 01:38:22 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as 43267 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698