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

Issue 12782016: Switch pkg packages, pub, and dartdoc to use package: imports. (Closed)

Created:
7 years, 9 months ago by nweiz
Modified:
7 years, 9 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Switch pkg packages, pub, and dartdoc to use package: imports. This also changes the SDK layout by replacing the "pkg" directory, which contained the full source of all the packages needed by pub and dartdoc, with a "packages" directory that contains only their lib directories. This directory is used as the package root for pub and dartdoc when run from the SDK. BUG=6745 Committed: https://code.google.com/p/dart/source/detail?r=20640

Patch Set 1 #

Total comments: 16

Patch Set 2 : Code review changes #

Total comments: 2

Patch Set 3 : Code review change #

Total comments: 13

Patch Set 4 : Code review changes #

Total comments: 2

Patch Set 5 : Code review changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+287 lines, -234 lines) Patch
M pkg/fixnum/test/int_64_vm_test.dart View 1 chunk +4 lines, -3 lines 0 comments Download
M pkg/http/lib/src/multipart_file.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/http/test/client_test.dart View 1 chunk +3 lines, -2 lines 0 comments Download
M pkg/http/test/http_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M pkg/http/test/mock_client_test.dart View 1 chunk +4 lines, -3 lines 0 comments Download
M pkg/http/test/multipart_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/http/test/request_test.dart View 1 chunk +3 lines, -2 lines 0 comments Download
M pkg/http/test/response_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/http/test/streamed_request_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M pkg/http/test/utils.dart View 1 chunk +4 lines, -3 lines 0 comments Download
M pkg/logging/test/logging_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/oauth2/lib/src/authorization_code_grant.dart View 1 chunk +1 line, -2 lines 0 comments Download
M pkg/oauth2/lib/src/client.dart View 1 chunk +1 line, -1 line 0 comments Download
pkg/oauth2/lib/src/credentials.dart View 1 chunk +2 lines, -1 line 0 comments Download
M pkg/oauth2/lib/src/handle_access_token_response.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/oauth2/test/authorization_code_grant_test.dart View 1 chunk +5 lines, -4 lines 0 comments Download
M pkg/oauth2/test/client_test.dart View 1 chunk +4 lines, -3 lines 0 comments Download
M pkg/oauth2/test/credentials_test.dart View 1 chunk +4 lines, -3 lines 0 comments Download
M pkg/oauth2/test/handle_access_token_response_test.dart View 1 chunk +5 lines, -4 lines 0 comments Download
M pkg/oauth2/test/utils.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M pkg/oauth2/test/utils_test.dart View 1 chunk +2 lines, -3 lines 0 comments Download
M pkg/scheduled_test/lib/descriptor.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/scheduled_test/lib/scheduled_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/scheduled_test/lib/src/descriptor/file_descriptor.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/scheduled_test/lib/src/descriptor/nothing_descriptor.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/scheduled_test/lib/src/descriptor/pattern_descriptor.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/scheduled_test/lib/src/schedule.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/scheduled_test/test/descriptor_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/scheduled_test/test/metatest.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/scheduled_test/test/scheduled_process_test.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M pkg/scheduled_test/test/scheduled_server_test.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M pkg/scheduled_test/test/scheduled_test_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/scheduled_test/test/substitute_future_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/scheduled_test/test/utils.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/scheduled_test/test/value_future_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M sdk/bin/dartdoc View 1 chunk +1 line, -1 line 0 comments Download
M sdk/bin/dartdoc.bat View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/dartdoc/bin/dartdoc.dart View 1 chunk +3 lines, -4 lines 0 comments Download
M sdk/lib/_internal/dartdoc/lib/universe_serializer.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/dartdoc/pubspec.yaml View 1 chunk +7 lines, -0 lines 0 comments Download
M sdk/lib/_internal/dartdoc/test/dartdoc_test.dart View 1 3 chunks +38 lines, -11 lines 0 comments Download
M sdk/lib/_internal/dartdoc/test/markdown_test.dart View 1 chunk +2 lines, -3 lines 0 comments Download
M tools/create_sdk.py View 1 2 3 4 3 chunks +7 lines, -20 lines 0 comments Download
M utils/apidoc/apidoc.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M utils/pub/command_lish.dart View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M utils/pub/command_uploader.dart View 1 1 chunk +3 lines, -2 lines 0 comments Download
M utils/pub/directory_tree.dart View 1 1 chunk +2 lines, -1 line 0 comments Download
M utils/pub/entrypoint.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/git_source.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/hosted_source.dart View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M utils/pub/http.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M utils/pub/io.dart View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M utils/pub/lock_file.dart View 1 chunk +3 lines, -1 line 0 comments Download
M utils/pub/oauth2.dart View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M utils/pub/package.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/path_source.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/pub.dart View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M utils/pub/pubspec.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M utils/pub/sdk.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/sdk/pub View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/sdk/pub.bat View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/source.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/system_cache.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/validator/compiled_dartdoc.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/validator/directory.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/validator/lib.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/validator/license.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/validator/name.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/validator/utf8_readme.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/command_line_config.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M utils/tests/pub/descriptor.dart View 1 chunk +5 lines, -5 lines 0 comments Download
M utils/tests/pub/descriptor/git.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M utils/tests/pub/descriptor/tar.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M utils/tests/pub/dev_dependency_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/directory_tree_test.dart View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M utils/tests/pub/error_group_test.dart View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M utils/tests/pub/install/broken_symlink_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/install/git/check_out_with_trailing_slash_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/install/git/lock_version_test.dart View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M utils/tests/pub/install/hosted/repair_cache_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/install/hosted/stay_locked_test.dart View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M utils/tests/pub/install/path/absolute_path_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M utils/tests/pub/install/path/absolute_symlink_test.dart View 1 chunk +1 line, -1 line 0 comments Download
utils/tests/pub/install/path/no_pubspec_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M utils/tests/pub/install/path/nonexistent_dir_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M utils/tests/pub/install/path/path_is_file_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M utils/tests/pub/install/path/relative_path_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/install/path/relative_symlink_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/install/path/shared_dependency_symlink_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/install/path/shared_dependency_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/install/pub_install_test.dart View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M utils/tests/pub/install/relative_symlink_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/io_test.dart View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M utils/tests/pub/lock_file_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M utils/tests/pub/oauth2_test.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M utils/tests/pub/pub_cache_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/pub_lish_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
utils/tests/pub/pub_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/pub_uploader_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M utils/tests/pub/pubspec_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M utils/tests/pub/real_version_test.dart View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
utils/tests/pub/sdk_constraint_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/test_pub.dart View 1 2 3 3 chunks +27 lines, -11 lines 0 comments Download
M utils/tests/pub/update/pub_update_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/validator_test.dart View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M utils/tests/pub/version_solver_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/version_test.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
nweiz
I'm adding Siggi for changes to pkg/logging, Dan for SDK-related changes, Andrei for changes to ...
7 years, 9 months ago (2013-03-26 01:43:02 UTC) #1
Bob Nystrom
https://codereview.chromium.org/12782016/diff/1/sdk/lib/_internal/dartdoc/test/dartdoc_test.dart File sdk/lib/_internal/dartdoc/test/dartdoc_test.dart (right): https://codereview.chromium.org/12782016/diff/1/sdk/lib/_internal/dartdoc/test/dartdoc_test.dart#newcode14 sdk/lib/_internal/dartdoc/test/dartdoc_test.dart:14: // TODO(rnystrom): Use "package:" URL (#4968). Do you want ...
7 years, 9 months ago (2013-03-26 01:55:44 UTC) #2
nweiz
https://codereview.chromium.org/12782016/diff/1/sdk/lib/_internal/dartdoc/test/dartdoc_test.dart File sdk/lib/_internal/dartdoc/test/dartdoc_test.dart (right): https://codereview.chromium.org/12782016/diff/1/sdk/lib/_internal/dartdoc/test/dartdoc_test.dart#newcode14 sdk/lib/_internal/dartdoc/test/dartdoc_test.dart:14: // TODO(rnystrom): Use "package:" URL (#4968). On 2013/03/26 01:55:44, ...
7 years, 9 months ago (2013-03-26 02:09:53 UTC) #3
Bob Nystrom
LGTM!
7 years, 9 months ago (2013-03-26 16:55:23 UTC) #4
kevmoo-old
Can't wait for this. https://codereview.chromium.org/12782016/diff/9001/utils/pub/hosted_source.dart File utils/pub/hosted_source.dart (right): https://codereview.chromium.org/12782016/diff/9001/utils/pub/hosted_source.dart#newcode12 utils/pub/hosted_source.dart:12: // TODO(nweiz): Make this import ...
7 years, 9 months ago (2013-03-26 20:06:25 UTC) #5
nweiz
https://codereview.chromium.org/12782016/diff/9001/utils/pub/hosted_source.dart File utils/pub/hosted_source.dart (right): https://codereview.chromium.org/12782016/diff/9001/utils/pub/hosted_source.dart#newcode12 utils/pub/hosted_source.dart:12: // TODO(nweiz): Make this import better. On 2013/03/26 20:06:25, ...
7 years, 9 months ago (2013-03-26 20:50:38 UTC) #6
Andrei Mouravski
lgtm https://codereview.chromium.org/12782016/diff/13001/utils/tests/pub/directory_tree_test.dart File utils/tests/pub/directory_tree_test.dart (right): https://codereview.chromium.org/12782016/diff/13001/utils/tests/pub/directory_tree_test.dart#newcode8 utils/tests/pub/directory_tree_test.dart:8: import '../../pub/directory_tree.dart'; Newline to match others. https://codereview.chromium.org/12782016/diff/13001/utils/tests/pub/error_group_test.dart File ...
7 years, 9 months ago (2013-03-27 01:16:37 UTC) #7
Andrei Mouravski
Actually, it looks like if you try to just straight up ./tools/build.py -m release with ...
7 years, 9 months ago (2013-03-27 01:18:26 UTC) #8
Siggi Cherem (dart-lang)
lgtm! https://codereview.chromium.org/12782016/diff/13001/pkg/logging/lib/logging.dart File pkg/logging/lib/logging.dart (right): https://codereview.chromium.org/12782016/diff/13001/pkg/logging/lib/logging.dart#newcode14 pkg/logging/lib/logging.dart:14: import 'package:meta/meta.dart'; fyi - kevmoo is about to ...
7 years, 9 months ago (2013-03-27 19:20:35 UTC) #9
nweiz
I've fixed apidoc to run with the correct --package-root. https://codereview.chromium.org/12782016/diff/13001/utils/tests/pub/directory_tree_test.dart File utils/tests/pub/directory_tree_test.dart (right): https://codereview.chromium.org/12782016/diff/13001/utils/tests/pub/directory_tree_test.dart#newcode8 utils/tests/pub/directory_tree_test.dart:8: ...
7 years, 9 months ago (2013-03-27 21:03:52 UTC) #10
Andrei Mouravski
lgtm
7 years, 9 months ago (2013-03-27 21:55:30 UTC) #11
Andrei Mouravski
lgtm lgtm
7 years, 9 months ago (2013-03-27 21:55:30 UTC) #12
dgrove
One additional question: what about dartdoc.bat ? https://codereview.chromium.org/12782016/diff/31001/tools/create_sdk.py File tools/create_sdk.py (right): https://codereview.chromium.org/12782016/diff/31001/tools/create_sdk.py#newcode229 tools/create_sdk.py:229: copytree(join(HOME, 'pkg', ...
7 years, 9 months ago (2013-03-28 02:12:38 UTC) #13
nweiz
I've fixed dartdoc.bat. https://codereview.chromium.org/12782016/diff/31001/tools/create_sdk.py File tools/create_sdk.py (right): https://codereview.chromium.org/12782016/diff/31001/tools/create_sdk.py#newcode229 tools/create_sdk.py:229: copytree(join(HOME, 'pkg', library, 'lib'), join(PACKAGES, library)) ...
7 years, 9 months ago (2013-03-28 20:06:04 UTC) #14
dgrove
sdk changes LGTM. Please be sure to try this on the SDK on all OSes ...
7 years, 9 months ago (2013-03-28 20:20:37 UTC) #15
nweiz
7 years, 9 months ago (2013-03-28 20:28:01 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 manually as r20640 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698