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

Issue 10916190: Support both new and old style package layouts. (Closed)

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

Description

Support both new and old style package layouts. Update the tests to all use the new layout. Committed: https://code.google.com/p/dart/source/detail?r=12224

Patch Set 1 #

Total comments: 6

Patch Set 2 : Respond to review. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -110 lines) Patch
M utils/pub/entrypoint.dart View 1 3 chunks +6 lines, -16 lines 0 comments Download
M utils/pub/io.dart View 1 1 chunk +49 lines, -0 lines 2 comments Download
M utils/pub/pub.dart View 2 chunks +0 lines, -7 lines 0 comments Download
M utils/pub/sdk_source.dart View 1 1 chunk +5 lines, -2 lines 0 comments Download
M utils/tests/pub/pub_install_git_test.dart View 15 chunks +18 lines, -18 lines 0 comments Download
M utils/tests/pub/pub_install_sdk_test.dart View 1 chunk +5 lines, -1 line 0 comments Download
M utils/tests/pub/pub_install_test.dart View 1 7 chunks +81 lines, -26 lines 0 comments Download
M utils/tests/pub/pub_test.dart View 1 chunk +3 lines, -4 lines 0 comments Download
M utils/tests/pub/pub_update_git_test.dart View 8 chunks +14 lines, -16 lines 0 comments Download
M utils/tests/pub/pub_update_test.dart View 1 chunk +46 lines, -6 lines 0 comments Download
M utils/tests/pub/test_pub.dart View 5 chunks +21 lines, -14 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Bob Nystrom
This also re-enables self links. If you don't want a circular symlink, just update your ...
8 years, 3 months ago (2012-09-08 01:22:27 UTC) #1
nweiz
https://chromiumcodereview.appspot.com/10916190/diff/1/utils/pub/io.dart File utils/pub/io.dart (right): https://chromiumcodereview.appspot.com/10916190/diff/1/utils/pub/io.dart#newcode301 utils/pub/io.dart:301: if (isOldStyle) { Shouldn't we print some sort of ...
8 years, 3 months ago (2012-09-10 19:24:47 UTC) #2
devoncarew
> This also re-enables self links. If you don't want a circular symlink, just update ...
8 years, 3 months ago (2012-09-10 19:41:07 UTC) #3
danrubel
On 2012/09/10 19:41:07, devoncarew wrote: > > This also re-enables self links. If you don't ...
8 years, 3 months ago (2012-09-10 19:51:30 UTC) #4
Bob Nystrom
On 2012/09/10 19:41:07, devoncarew wrote: > > This also re-enables self links. If you don't ...
8 years, 3 months ago (2012-09-11 19:36:37 UTC) #5
Bob Nystrom
On 2012/09/10 19:51:30, danrubel wrote: > On 2012/09/10 19:41:07, devoncarew wrote: > > > This ...
8 years, 3 months ago (2012-09-11 19:36:51 UTC) #6
Bob Nystrom
Thanks! https://chromiumcodereview.appspot.com/10916190/diff/1/utils/pub/io.dart File utils/pub/io.dart (right): https://chromiumcodereview.appspot.com/10916190/diff/1/utils/pub/io.dart#newcode301 utils/pub/io.dart:301: if (isOldStyle) { On 2012/09/10 19:24:47, nweiz wrote: ...
8 years, 3 months ago (2012-09-11 19:36:59 UTC) #7
nweiz
lgtm https://chromiumcodereview.appspot.com/10916190/diff/5001/utils/pub/io.dart File utils/pub/io.dart (right): https://chromiumcodereview.appspot.com/10916190/diff/5001/utils/pub/io.dart#newcode295 utils/pub/io.dart:295: Future<File> createPackageSymlink(String name, from, to, Can't you infer ...
8 years, 3 months ago (2012-09-11 21:07:47 UTC) #8
Bob Nystrom
8 years, 3 months ago (2012-09-11 21:39:00 UTC) #9
Thanks!

https://chromiumcodereview.appspot.com/10916190/diff/5001/utils/pub/io.dart
File utils/pub/io.dart (right):

https://chromiumcodereview.appspot.com/10916190/diff/5001/utils/pub/io.dart#n...
utils/pub/io.dart:295: Future<File> createPackageSymlink(String name, from, to,
On 2012/09/11 21:07:47, nweiz wrote:
> Can't you infer the name from "from"?

I could, but every callsite knew the name so I figured it was simplest just to
pass it in.

Powered by Google App Engine
This is Rietveld 408576698