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

Issue 15347004: Gracefully handle pubspecs with dependencies using unknown sources. (Closed)

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

Description

Gracefully handle pubspecs with dependencies using unknown sources. BUG=https://code.google.com/p/dart/issues/detail?id=10190 R=nweiz@google.com Committed: https://code.google.com/p/dart/source/detail?r=22913

Patch Set 1 #

Patch Set 2 : Clean up some stale stuff. #

Patch Set 3 : Handle bad sources in dev deps. #

Total comments: 25

Patch Set 4 : Re-upload. #

Total comments: 1

Patch Set 5 : Revise. #

Patch Set 6 : Add tests for unknown sources in lockfiles. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+436 lines, -180 lines) Patch
M sdk/lib/_internal/pub/lib/src/entrypoint.dart View 1 2 3 4 2 chunks +12 lines, -8 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/git_source.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/hosted_source.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/lock_file.dart View 1 2 3 4 5 2 chunks +9 lines, -10 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/package.dart View 8 chunks +6 lines, -36 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/path_source.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/pubspec.dart View 3 chunks +16 lines, -13 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart View 1 2 3 4 5 10 chunks +23 lines, -11 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/solver/version_solver.dart View 1 2 3 4 8 chunks +30 lines, -8 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/source.dart View 1 2 3 4 1 chunk +37 lines, -3 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/system_cache.dart View 1 chunk +9 lines, -25 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/validator/dependency.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/validator/license.dart View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A sdk/lib/_internal/pub/test/install/unknown_source_test.dart View 1 2 3 4 5 1 chunk +80 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/test/lock_file_test.dart View 1 2 3 4 5 5 chunks +19 lines, -16 lines 0 comments Download
M sdk/lib/_internal/pub/test/pub_cache_test.dart View 5 chunks +30 lines, -13 lines 0 comments Download
M sdk/lib/_internal/pub/test/pubspec_test.dart View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/test/test_pub.dart View 1 chunk +0 lines, -14 lines 0 comments Download
A sdk/lib/_internal/pub/test/update/unknown_source_test.dart View 1 2 3 4 5 1 chunk +80 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/test/version_solver_test.dart View 1 2 9 chunks +63 lines, -13 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Bob Nystrom
This makes PackageName (et. al.) just store the source name instead of a reference to ...
7 years, 7 months ago (2013-05-17 22:30:31 UTC) #1
nweiz
I don't see any tests for the lockfile referencing an unknown source, or for any ...
7 years, 7 months ago (2013-05-17 23:55:55 UTC) #2
Bob Nystrom
https://codereview.chromium.org/15347004/diff/4001/sdk/lib/_internal/pub/lib/src/entrypoint.dart File sdk/lib/_internal/pub/lib/src/entrypoint.dart (left): https://codereview.chromium.org/15347004/diff/4001/sdk/lib/_internal/pub/lib/src/entrypoint.dart#oldcode67 sdk/lib/_internal/pub/lib/src/entrypoint.dart:67: /// `id.source.shouldCache` is true). On 2013/05/17 23:55:55, nweiz wrote: ...
7 years, 7 months ago (2013-05-20 20:06:00 UTC) #3
nweiz
lgtm https://codereview.chromium.org/15347004/diff/4001/sdk/lib/_internal/pub/lib/src/source.dart File sdk/lib/_internal/pub/lib/src/source.dart (right): https://codereview.chromium.org/15347004/diff/4001/sdk/lib/_internal/pub/lib/src/source.dart#newcode85 sdk/lib/_internal/pub/lib/src/source.dart:85: Future<Pubspec> describe(PackageId id) { On 2013/05/20 20:06:00, Bob ...
7 years, 7 months ago (2013-05-20 23:54:05 UTC) #4
Bob Nystrom
7 years, 7 months ago (2013-05-21 00:09:32 UTC) #5
Message was sent while issue was closed.
Committed patchset #6 manually as r22913 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698