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

Issue 1226133003: Fix several problems with offline mode. (Closed)

Created:
5 years, 5 months ago by nweiz
Modified:
5 years, 5 months ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/pub.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix several problems with offline mode. * Some HTTP requests were still being made. These are now avoided, and the tests have been modified to assert that no HTTP requests are made at all. * When a specific package version was in a package's lockfile *and* available on the server but wasn't in the user's cache, pub would crash when run in offline mode. Closes #1293 Print a nice error for missing offline packages. Previously, this would print an unhelpful message along with "this is an unexpected error". Closes #1293 R=rnystrom@google.com Committed: https://github.com/dart-lang/pub/commit/e47378e67dc1ce1774d611768e04429dddabd7ec

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -12 lines) Patch
M lib/src/source/hosted.dart View 2 chunks +7 lines, -7 lines 0 comments Download
M test/hosted/offline_test.dart View 4 chunks +43 lines, -5 lines 0 comments Download
M test/test_pub.dart View 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
nweiz
5 years, 5 months ago (2015-07-08 23:24:25 UTC) #1
Bob Nystrom
5 years, 5 months ago (2015-07-08 23:28:05 UTC) #2
Very nice. LGTM!

Powered by Google App Engine
This is Rietveld 408576698