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

Issue 14680005: Add offline support to pub install and update. (Closed)

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

Description

Add offline support to pub install and update. If you pass "--offline" to either, it will treat your system cache as if it were the package server. Running update in offline also prints a warning that you may have selected an older version of a package. BUG=https://code.google.com/p/dart/issues/detail?id=8262 R=nweiz@google.com Committed: https://code.google.com/p/dart/source/detail?r=22487

Patch Set 1 #

Total comments: 21

Patch Set 2 : Revise. #

Patch Set 3 : Revise. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -41 lines) Patch
M sdk/lib/_internal/pub/bin/pub.dart View 1 2 3 chunks +2 lines, -4 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/command.dart View 1 3 chunks +9 lines, -3 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/command_install.dart View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/command_lish.dart View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/command_update.dart View 1 2 3 chunks +18 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/command_uploader.dart View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/hosted_source.dart View 1 2 3 chunks +47 lines, -10 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/system_cache.dart View 1 1 chunk +11 lines, -3 lines 0 comments Download
M sdk/lib/_internal/pub/test/descriptor.dart View 2 chunks +13 lines, -10 lines 0 comments Download
A sdk/lib/_internal/pub/test/install/hosted/offline_test.dart View 1 chunk +66 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/test/pub_test.dart View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
A sdk/lib/_internal/pub/test/update/hosted/offline_test.dart View 1 1 chunk +68 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Bob Nystrom
Dan, this supersedes your patch so you can probably delete that one. It works the ...
7 years, 7 months ago (2013-05-02 20:12:55 UTC) #1
nweiz
https://codereview.chromium.org/14680005/diff/1/sdk/lib/_internal/pub/lib/src/command.dart File sdk/lib/_internal/pub/lib/src/command.dart (right): https://codereview.chromium.org/14680005/diff/1/sdk/lib/_internal/pub/lib/src/command.dart#newcode72 sdk/lib/_internal/pub/lib/src/command.dart:72: /// Override this to use offline-only sources instead of ...
7 years, 7 months ago (2013-05-06 23:02:25 UTC) #2
Bob Nystrom
Thanks! https://codereview.chromium.org/14680005/diff/1/sdk/lib/_internal/pub/lib/src/command.dart File sdk/lib/_internal/pub/lib/src/command.dart (right): https://codereview.chromium.org/14680005/diff/1/sdk/lib/_internal/pub/lib/src/command.dart#newcode72 sdk/lib/_internal/pub/lib/src/command.dart:72: /// Override this to use offline-only sources instead ...
7 years, 7 months ago (2013-05-07 21:03:09 UTC) #3
nweiz
You didn't respond to any of my comments about "--offline" being hosted-specific. https://codereview.chromium.org/14680005/diff/1/sdk/lib/_internal/pub/lib/src/command_install.dart File sdk/lib/_internal/pub/lib/src/command_install.dart ...
7 years, 7 months ago (2013-05-07 21:14:49 UTC) #4
Bob Nystrom
Oops, sorry. Was trying to use the keyboard shortcuts in Reitveld and accidentally skipped some ...
7 years, 7 months ago (2013-05-07 22:20:33 UTC) #5
nweiz
lgtm
7 years, 7 months ago (2013-05-07 23:54:15 UTC) #6
Bob Nystrom
7 years, 7 months ago (2013-05-08 00:40:02 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 manually as r22487 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698