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

Issue 1063233004: Teach dart_package to understand the packages/ subdirectory (Closed)

Created:
5 years, 8 months ago by blundell
Modified:
5 years, 8 months ago
Reviewers:
zra, tonyg, Cutch, jamesr
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Teach dart_package to understand the packages/ subdirectory This CL allows dart_packages to use pubspec.yaml files: - It adds a script that outputs a list of the files that exist in a target directory's "packages/" subdirectory. - It adds a "uses_pub" var that a dart_package can set to indicate that it is using pub. If that variable is set, the dart_package will have a new dependency that repackages the files that were pulled into the packages/ subdirectory into a dartzip file. - It adds a script that runs "pub get" in all directories that have a checked- in pubspec.yaml file. This script can be run as a hook in "gclient sync" to avoid the need to manually run "pub get". This CL also adds the glient sync hook to the Mojo repo, changes //mojo/dart/apptest/BUILD.gn to use "uses_pub", and eliminates //third_party/dart-packages. R=tonyg@chromium.org, zra@google.com Committed: https://chromium.googlesource.com/external/mojo/+/a5e74398fe1a1844bf41e12f4c8d4ffc050f346b

Patch Set 1 #

Patch Set 2 : Formatting nits #

Patch Set 3 : Remove dart-packages #

Total comments: 23

Patch Set 4 : Responses to review #

Total comments: 18

Patch Set 5 : Response to review #

Total comments: 9

Patch Set 6 : Ignore sky/ rather than pubspec.lock #

Total comments: 4

Patch Set 7 : Response to review #

Patch Set 8 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -9305 lines) Patch
M .gitignore View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M BUILD.gn View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M DEPS View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
M mojo/dart/apptest/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
A mojo/dart/apptest/pubspec.lock View 1 chunk +19 lines, -0 lines 0 comments Download
A mojo/dart/apptest/pubspec.yaml View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M mojo/public/dart/rules.gni View 1 2 3 4 4 chunks +50 lines, -5 lines 0 comments Download
A mojo/public/tools/dart_list_packages_contents.py View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download
A mojo/public/tools/git/dart_pub_get.py View 1 2 3 4 5 1 chunk +81 lines, -0 lines 0 comments Download
D third_party/dart-packages/crypto/BUILD.gn View 1 2 1 chunk +0 lines, -17 lines 0 comments Download
D third_party/dart-packages/crypto/LICENSE View 1 2 1 chunk +0 lines, -26 lines 0 comments Download
D third_party/dart-packages/crypto/README.md View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
D third_party/dart-packages/crypto/README.mojo View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
D third_party/dart-packages/crypto/crypto/crypto.dart View 1 2 1 chunk +0 lines, -109 lines 0 comments Download
D third_party/dart-packages/crypto/crypto/src/crypto_utils.dart View 1 2 1 chunk +0 lines, -160 lines 0 comments Download
D third_party/dart-packages/crypto/crypto/src/hash_utils.dart View 1 2 1 chunk +0 lines, -152 lines 0 comments Download
D third_party/dart-packages/crypto/crypto/src/hmac.dart View 1 2 1 chunk +0 lines, -114 lines 0 comments Download
D third_party/dart-packages/crypto/crypto/src/md5.dart View 1 2 1 chunk +0 lines, -87 lines 0 comments Download
D third_party/dart-packages/crypto/crypto/src/sha1.dart View 1 2 1 chunk +0 lines, -69 lines 0 comments Download
D third_party/dart-packages/crypto/crypto/src/sha256.dart View 1 2 1 chunk +0 lines, -107 lines 0 comments Download
D third_party/dart-packages/matcher/BUILD.gn View 1 2 1 chunk +0 lines, -28 lines 0 comments Download
D third_party/dart-packages/matcher/LICENSE View 1 2 1 chunk +0 lines, -26 lines 0 comments Download
D third_party/dart-packages/matcher/README.md View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
D third_party/dart-packages/matcher/README.mojo View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
D third_party/dart-packages/matcher/matcher/matcher.dart View 1 2 1 chunk +0 lines, -22 lines 0 comments Download
D third_party/dart-packages/matcher/matcher/mirror_matchers.dart View 1 2 1 chunk +0 lines, -79 lines 0 comments Download
D third_party/dart-packages/matcher/matcher/src/core_matchers.dart View 1 2 1 chunk +0 lines, -653 lines 0 comments Download
D third_party/dart-packages/matcher/matcher/src/description.dart View 1 2 1 chunk +0 lines, -68 lines 0 comments Download
D third_party/dart-packages/matcher/matcher/src/error_matchers.dart View 1 2 1 chunk +0 lines, -97 lines 0 comments Download
D third_party/dart-packages/matcher/matcher/src/expect.dart View 1 2 1 chunk +0 lines, -177 lines 0 comments Download
D third_party/dart-packages/matcher/matcher/src/future_matchers.dart View 1 2 1 chunk +0 lines, -75 lines 0 comments Download
D third_party/dart-packages/matcher/matcher/src/interfaces.dart View 1 2 1 chunk +0 lines, -60 lines 0 comments Download
D third_party/dart-packages/matcher/matcher/src/iterable_matchers.dart View 1 2 1 chunk +0 lines, -267 lines 0 comments Download
D third_party/dart-packages/matcher/matcher/src/map_matchers.dart View 1 2 1 chunk +0 lines, -61 lines 0 comments Download
D third_party/dart-packages/matcher/matcher/src/numeric_matchers.dart View 1 2 1 chunk +0 lines, -202 lines 0 comments Download
D third_party/dart-packages/matcher/matcher/src/operator_matchers.dart View 1 2 1 chunk +0 lines, -113 lines 0 comments Download
D third_party/dart-packages/matcher/matcher/src/pretty_print.dart View 1 2 1 chunk +0 lines, -136 lines 0 comments Download
D third_party/dart-packages/matcher/matcher/src/prints_matcher.dart View 1 2 1 chunk +0 lines, -73 lines 0 comments Download
D third_party/dart-packages/matcher/matcher/src/string_matchers.dart View 1 2 1 chunk +0 lines, -201 lines 0 comments Download
D third_party/dart-packages/matcher/matcher/src/throws_matcher.dart View 1 2 1 chunk +0 lines, -112 lines 0 comments Download
D third_party/dart-packages/matcher/matcher/src/throws_matchers.dart View 1 2 1 chunk +0 lines, -44 lines 0 comments Download
D third_party/dart-packages/matcher/matcher/src/util.dart View 1 2 1 chunk +0 lines, -62 lines 0 comments Download
D third_party/dart-packages/path/BUILD.gn View 1 2 1 chunk +0 lines, -21 lines 0 comments Download
D third_party/dart-packages/path/LICENSE View 1 2 1 chunk +0 lines, -26 lines 0 comments Download
D third_party/dart-packages/path/README.md View 1 2 1 chunk +0 lines, -93 lines 0 comments Download
D third_party/dart-packages/path/README.mojo View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
D third_party/dart-packages/path/path/path.dart View 1 2 1 chunk +0 lines, -381 lines 0 comments Download
D third_party/dart-packages/path/path/src/characters.dart View 1 2 1 chunk +0 lines, -19 lines 0 comments Download
D third_party/dart-packages/path/path/src/context.dart View 1 2 1 chunk +0 lines, -565 lines 0 comments Download
D third_party/dart-packages/path/path/src/internal_style.dart View 1 2 1 chunk +0 lines, -65 lines 0 comments Download
D third_party/dart-packages/path/path/src/parsed_path.dart View 1 2 1 chunk +0 lines, -183 lines 0 comments Download
D third_party/dart-packages/path/path/src/path_exception.dart View 1 2 1 chunk +0 lines, -15 lines 0 comments Download
D third_party/dart-packages/path/path/src/style.dart View 1 2 1 chunk +0 lines, -88 lines 0 comments Download
D third_party/dart-packages/path/path/src/style/posix.dart View 1 2 1 chunk +0 lines, -64 lines 0 comments Download
D third_party/dart-packages/path/path/src/style/url.dart View 1 2 1 chunk +0 lines, -64 lines 0 comments Download
D third_party/dart-packages/path/path/src/style/windows.dart View 1 2 1 chunk +0 lines, -125 lines 0 comments Download
D third_party/dart-packages/path/path/src/utils.dart View 1 2 1 chunk +0 lines, -16 lines 0 comments Download
D third_party/dart-packages/stack_trace/BUILD.gn View 1 2 1 chunk +0 lines, -18 lines 0 comments Download
D third_party/dart-packages/stack_trace/LICENSE View 1 2 1 chunk +0 lines, -26 lines 0 comments Download
D third_party/dart-packages/stack_trace/README.md View 1 2 1 chunk +0 lines, -208 lines 0 comments Download
D third_party/dart-packages/stack_trace/README.mojo View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
D third_party/dart-packages/stack_trace/stack_trace/src/chain.dart View 1 2 1 chunk +0 lines, -179 lines 0 comments Download
D third_party/dart-packages/stack_trace/stack_trace/src/frame.dart View 1 2 1 chunk +0 lines, -293 lines 0 comments Download
D third_party/dart-packages/stack_trace/stack_trace/src/lazy_trace.dart View 1 2 1 chunk +0 lines, -36 lines 0 comments Download
D third_party/dart-packages/stack_trace/stack_trace/src/stack_zone_specification.dart View 1 2 1 chunk +0 lines, -241 lines 0 comments Download
D third_party/dart-packages/stack_trace/stack_trace/src/trace.dart View 1 2 1 chunk +0 lines, -274 lines 0 comments Download
D third_party/dart-packages/stack_trace/stack_trace/src/utils.dart View 1 2 1 chunk +0 lines, -36 lines 0 comments Download
D third_party/dart-packages/stack_trace/stack_trace/src/vm_trace.dart View 1 2 1 chunk +0 lines, -34 lines 0 comments Download
D third_party/dart-packages/stack_trace/stack_trace/stack_trace.dart View 1 2 1 chunk +0 lines, -28 lines 0 comments Download
D third_party/dart-packages/unittest/BUILD.gn View 1 2 1 chunk +0 lines, -29 lines 0 comments Download
D third_party/dart-packages/unittest/LICENSE View 1 2 1 chunk +0 lines, -26 lines 0 comments Download
D third_party/dart-packages/unittest/README.md View 1 2 1 chunk +0 lines, -141 lines 0 comments Download
D third_party/dart-packages/unittest/README.mojo View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
D third_party/dart-packages/unittest/unittest/compact_vm_config.dart View 1 2 1 chunk +0 lines, -214 lines 0 comments Download
D third_party/dart-packages/unittest/unittest/coverage_controller.js View 1 2 1 chunk +0 lines, -31 lines 0 comments Download
D third_party/dart-packages/unittest/unittest/html_config.dart View 1 2 1 chunk +0 lines, -175 lines 0 comments Download
D third_party/dart-packages/unittest/unittest/html_enhanced_config.dart View 1 2 1 chunk +0 lines, -405 lines 0 comments Download
D third_party/dart-packages/unittest/unittest/html_individual_config.dart View 1 2 1 chunk +0 lines, -52 lines 0 comments Download
D third_party/dart-packages/unittest/unittest/src/configuration.dart View 1 2 1 chunk +0 lines, -69 lines 0 comments Download
D third_party/dart-packages/unittest/unittest/src/expected_function.dart View 1 2 1 chunk +0 lines, -203 lines 0 comments Download
D third_party/dart-packages/unittest/unittest/src/group_context.dart View 1 2 1 chunk +0 lines, -75 lines 0 comments Download
D third_party/dart-packages/unittest/unittest/src/internal_test_case.dart View 1 2 1 chunk +0 lines, -227 lines 0 comments Download
D third_party/dart-packages/unittest/unittest/src/simple_configuration.dart View 1 2 1 chunk +0 lines, -207 lines 0 comments Download
D third_party/dart-packages/unittest/unittest/src/test_case.dart View 1 2 1 chunk +0 lines, -55 lines 0 comments Download
D third_party/dart-packages/unittest/unittest/src/test_environment.dart View 1 2 1 chunk +0 lines, -74 lines 0 comments Download
D third_party/dart-packages/unittest/unittest/src/utils.dart View 1 2 1 chunk +0 lines, -51 lines 0 comments Download
D third_party/dart-packages/unittest/unittest/test_controller.js View 1 2 1 chunk +0 lines, -237 lines 0 comments Download
D third_party/dart-packages/unittest/unittest/unittest.dart View 1 2 1 chunk +0 lines, -442 lines 0 comments Download
D third_party/dart-packages/unittest/unittest/vm_config.dart View 1 2 1 chunk +0 lines, -65 lines 0 comments Download

Messages

Total messages: 18 (2 generated)
blundell
5 years, 8 months ago (2015-04-08 10:29:49 UTC) #2
tonyg
This is awesome! A few comments, but all minor stuff. I'm really looking forward to ...
5 years, 8 months ago (2015-04-08 13:52:38 UTC) #3
zra
+jamesr, who had reservations about hitting the network during build. +johnmccutchan, who did something similar ...
5 years, 8 months ago (2015-04-08 14:54:36 UTC) #5
Cutch
On 2015/04/08 14:54:36, zra wrote: > +jamesr, who had reservations about hitting the network during ...
5 years, 8 months ago (2015-04-08 16:16:10 UTC) #6
blundell
On 2015/04/08 16:16:10, Cutch wrote: > On 2015/04/08 14:54:36, zra wrote: > > +jamesr, who ...
5 years, 8 months ago (2015-04-08 16:19:54 UTC) #7
blundell
All comments addressed (including putting .pub-cache inside the repo and not hitting the network during ...
5 years, 8 months ago (2015-04-09 11:53:42 UTC) #8
tonyg
lgtm w/ comments https://codereview.chromium.org/1063233004/diff/40001/mojo/dart/apptest/pubspec.lock File mojo/dart/apptest/pubspec.lock (right): https://codereview.chromium.org/1063233004/diff/40001/mojo/dart/apptest/pubspec.lock#newcode1 mojo/dart/apptest/pubspec.lock:1: # Generated by pub On 2015/04/09 ...
5 years, 8 months ago (2015-04-09 12:55:57 UTC) #9
blundell
Thanks! Will wait for zra@'s review as well (plus if anyone else wants to chime ...
5 years, 8 months ago (2015-04-09 15:34:37 UTC) #10
tonyg
https://codereview.chromium.org/1063233004/diff/60001/.gitignore File .gitignore (right): https://codereview.chromium.org/1063233004/diff/60001/.gitignore#newcode15 .gitignore:15: pubspec.lock On 2015/04/09 15:34:36, blundell wrote: > On 2015/04/09 ...
5 years, 8 months ago (2015-04-09 15:44:20 UTC) #11
zra
https://codereview.chromium.org/1063233004/diff/60001/.gitignore File .gitignore (right): https://codereview.chromium.org/1063233004/diff/60001/.gitignore#newcode15 .gitignore:15: pubspec.lock On 2015/04/09 15:44:20, tonyg wrote: > On 2015/04/09 ...
5 years, 8 months ago (2015-04-09 16:20:48 UTC) #12
jamesr
We definitely need to have checked-in lockfiles for any dependencies fetched by 'pub get' https://codereview.chromium.org/1063233004/diff/80001/.gitignore ...
5 years, 8 months ago (2015-04-09 20:04:04 UTC) #13
blundell
All comments addressed. The issue was that //sky has pubspec.yaml files but they're not intended ...
5 years, 8 months ago (2015-04-10 10:06:49 UTC) #14
tonyg
lgtm https://codereview.chromium.org/1063233004/diff/100001/.gitignore File .gitignore (right): https://codereview.chromium.org/1063233004/diff/100001/.gitignore#newcode18 .gitignore:18: packages/ Alphabetization gets a little wonky around this ...
5 years, 8 months ago (2015-04-10 13:39:20 UTC) #15
zra
lgtm https://codereview.chromium.org/1063233004/diff/80001/.gitignore File .gitignore (right): https://codereview.chromium.org/1063233004/diff/80001/.gitignore#newcode20 .gitignore:20: packages/ On 2015/04/10 10:06:49, blundell wrote: > On ...
5 years, 8 months ago (2015-04-10 15:04:10 UTC) #16
blundell
https://codereview.chromium.org/1063233004/diff/100001/.gitignore File .gitignore (right): https://codereview.chromium.org/1063233004/diff/100001/.gitignore#newcode18 .gitignore:18: packages/ On 2015/04/10 13:39:20, tonyg wrote: > Alphabetization gets ...
5 years, 8 months ago (2015-04-13 14:23:29 UTC) #17
blundell
5 years, 8 months ago (2015-04-13 14:32:22 UTC) #18
Message was sent while issue was closed.
Committed patchset #8 (id:140001) manually as
a5e74398fe1a1844bf41e12f4c8d4ffc050f346b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698