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

Issue 14241005: Use the cached pubspec if possible for describing hosted packages. (Closed)

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

Description

Use the cached pubspec if possible for describing hosted packages. BUG=https://code.google.com/p/dart/issues/detail?id=9027 Committed: https://code.google.com/p/dart/source/detail?r=21777

Patch Set 1 #

Total comments: 12

Patch Set 2 : Revise. #

Total comments: 4

Patch Set 3 : Redo after realizing SystemCache already has this logic. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -6 lines) Patch
M utils/pub/hosted_source.dart View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M utils/pub/package.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/system_cache.dart View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M utils/tests/pub/command_line_config.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
A utils/tests/pub/install/hosted/cached_pubspec_test.dart View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
M utils/tests/pub/test_pub.dart View 1 2 3 chunks +18 lines, -0 lines 0 comments Download
M utils/tests/pub/version_solver_test.dart View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Bob Nystrom
I did a local test of a package that depends on web-ui and has everything ...
7 years, 8 months ago (2013-04-18 22:23:09 UTC) #1
nweiz
Don't forget to add a test for corrupted-pubspec recovery. https://codereview.chromium.org/14241005/diff/1/utils/pub/hosted_source.dart File utils/pub/hosted_source.dart (right): https://codereview.chromium.org/14241005/diff/1/utils/pub/hosted_source.dart#newcode55 utils/pub/hosted_source.dart:55: ...
7 years, 8 months ago (2013-04-18 22:50:03 UTC) #2
Bob Nystrom
Thanks! https://codereview.chromium.org/14241005/diff/1/utils/pub/hosted_source.dart File utils/pub/hosted_source.dart (right): https://codereview.chromium.org/14241005/diff/1/utils/pub/hosted_source.dart#newcode55 utils/pub/hosted_source.dart:55: return new Pubspec.load(id.name, cacheDir, systemCache.sources); On 2013/04/18 22:50:03, ...
7 years, 8 months ago (2013-04-18 23:07:09 UTC) #3
nweiz
This still needs a test for catching a pubspec format error. https://codereview.chromium.org/14241005/diff/3002/utils/pub/hosted_source.dart File utils/pub/hosted_source.dart (right): ...
7 years, 8 months ago (2013-04-19 00:12:31 UTC) #4
Bob Nystrom
So it turns out this "look in the cache for an installed pubspec" was already ...
7 years, 8 months ago (2013-04-19 21:39:27 UTC) #5
nweiz
lgtm Can you file a bug for pub crashing horribly on a corrupted pubspec?
7 years, 8 months ago (2013-04-19 22:13:49 UTC) #6
Bob Nystrom
On 2013/04/19 22:13:49, nweiz wrote: > lgtm > > Can you file a bug for ...
7 years, 8 months ago (2013-04-19 22:21:41 UTC) #7
Bob Nystrom
7 years, 8 months ago (2013-04-19 22:29:49 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 manually as r21777 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698