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

Issue 11557008: Make pub publish more user friendly: (Closed)

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

Description

Make pub publish more user friendly: - Show the contents of their package. - Let the confirm the upload even if there are no warnings. - Make the error/warning text less scary. - Validate that the pubspec has a version client-side. Addresses #7175 and #7219. Committed: https://code.google.com/p/dart/source/detail?r=16068

Patch Set 1 #

Patch Set 2 : Blacklist '.DS_Store' files from publish. #

Total comments: 33

Patch Set 3 : Make sure to use real path to package. #

Total comments: 1

Patch Set 4 : Revise. #

Total comments: 1

Patch Set 5 : Fix typo. #

Patch Set 6 : Merge in path changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+449 lines, -67 lines) Patch
M utils/pub/command_lish.dart View 1 2 3 4 6 chunks +62 lines, -25 lines 0 comments Download
A utils/pub/directory_tree.dart View 1 2 3 1 chunk +133 lines, -0 lines 0 comments Download
M utils/pub/io.dart View 1 2 3 4 5 3 chunks +16 lines, -2 lines 0 comments Download
M utils/pub/path.dart View 1 2 3 4 5 2 chunks +8 lines, -1 line 0 comments Download
M utils/pub/validator.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M utils/pub/validator/lib.dart View 1 2 3 2 chunks +7 lines, -6 lines 0 comments Download
M utils/pub/validator/license.dart View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M utils/pub/validator/name.dart View 1 chunk +7 lines, -6 lines 0 comments Download
M utils/pub/validator/pubspec_field.dart View 3 chunks +12 lines, -6 lines 0 comments Download
A utils/tests/pub/directory_tree_test.dart View 1 chunk +114 lines, -0 lines 0 comments Download
M utils/tests/pub/oauth2_test.dart View 6 chunks +11 lines, -2 lines 0 comments Download
M utils/tests/pub/path/path_posix_test.dart View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M utils/tests/pub/path/path_windows_test.dart View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download
M utils/tests/pub/pub_lish_test.dart View 19 chunks +45 lines, -9 lines 0 comments Download
M utils/tests/pub/test_pub.dart View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Bob Nystrom
This is a bigger and scarier patch than I'd like right before the release. I ...
8 years ago (2012-12-12 07:39:33 UTC) #1
nweiz
https://codereview.chromium.org/11557008/diff/3001/utils/pub/command_lish.dart File utils/pub/command_lish.dart (right): https://codereview.chromium.org/11557008/diff/3001/utils/pub/command_lish.dart#newcode42 utils/pub/command_lish.dart:42: return client.get(server.resolve("/packages/versions/new.json")).chain((response) { Long line https://codereview.chromium.org/11557008/diff/3001/utils/pub/command_lish.dart#newcode113 utils/pub/command_lish.dart:113: }).chain(consumeInputStream).chain((packageBytes) { ...
8 years ago (2012-12-12 21:21:21 UTC) #2
Bob Nystrom
Thanks! https://codereview.chromium.org/11557008/diff/3001/utils/pub/command_lish.dart File utils/pub/command_lish.dart (right): https://codereview.chromium.org/11557008/diff/3001/utils/pub/command_lish.dart#newcode42 utils/pub/command_lish.dart:42: return client.get(server.resolve("/packages/versions/new.json")).chain((response) { On 2012/12/12 21:21:21, nweiz wrote: ...
8 years ago (2012-12-12 21:45:36 UTC) #3
nweiz
lgtm https://codereview.chromium.org/11557008/diff/3001/utils/pub/command_lish.dart File utils/pub/command_lish.dart (right): https://codereview.chromium.org/11557008/diff/3001/utils/pub/command_lish.dart#newcode113 utils/pub/command_lish.dart:113: }).chain(consumeInputStream).chain((packageBytes) { On 2012/12/12 21:45:36, Bob Nystrom wrote: ...
8 years ago (2012-12-12 21:59:51 UTC) #4
Bob Nystrom
Thanks! https://codereview.chromium.org/11557008/diff/3001/utils/pub/directory_tree.dart File utils/pub/directory_tree.dart (right): https://codereview.chromium.org/11557008/diff/3001/utils/pub/directory_tree.dart#newcode79 utils/pub/directory_tree.dart:79: if (isLastChild == true) { On 2012/12/12 21:59:51, ...
8 years ago (2012-12-12 22:14:32 UTC) #5
nweiz
8 years ago (2012-12-12 22:19:33 UTC) #6
https://codereview.chromium.org/11557008/diff/3001/utils/pub/directory_tree.dart
File utils/pub/directory_tree.dart (right):

https://codereview.chromium.org/11557008/diff/3001/utils/pub/directory_tree.d...
utils/pub/directory_tree.dart:79: if (isLastChild == true) {
On 2012/12/12 22:14:32, Bob Nystrom wrote:
> On 2012/12/12 21:59:51, nweiz wrote:
> > On 2012/12/12 21:45:36, Bob Nystrom wrote:
> > > On 2012/12/12 21:21:21, nweiz wrote:
> > > > if (isLastChild)
> > > 
> > > It's nullable. But fixed.
> > 
> > In practice, I don't think null is ever passed in here -- the "name != null"
> > check in _draw protects against that. Also, I don't think it should be
> nullable.
> 
> The name != null check is new. That's how I avoid making it nullable now. :)

I meant the one in _draw. _drawLine is never called with a null name.

Powered by Google App Engine
This is Rietveld 408576698