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

Issue 1096723002: Make pub generate .packages file. (Closed)

Created:
5 years, 8 months ago by Lasse Reichstein Nielsen
Modified:
5 years, 6 months ago
CC:
reviews_dartlang.org, bakster, sethladd, Bob Nystrom
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Use PackageGraph for data instead of collecting it myself. Move to separate file. #

Patch Set 3 : Change extension to "cfg". Remove unused code. #

Total comments: 33

Patch Set 4 : Missing instance of packages.map->packages.cfg #

Total comments: 2

Patch Set 5 : Address comments. #

Total comments: 4

Patch Set 6 : Move change to pub package. #

Patch Set 7 : Add test. #

Total comments: 57

Patch Set 8 : Address comments. #

Total comments: 18

Patch Set 9 : Address comments. #

Patch Set 10 : Added more tests #

Total comments: 5

Patch Set 11 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+283 lines, -3 lines) Patch
M lib/src/entrypoint.dart View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
A lib/src/package_locations.dart View 1 2 3 4 5 6 7 8 9 1 chunk +56 lines, -0 lines 0 comments Download
M pubspec.yaml View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M test/descriptor.dart View 1 2 3 4 5 6 7 8 9 2 chunks +18 lines, -0 lines 0 comments Download
A test/descriptor/packages.dart View 1 2 3 4 5 6 7 8 9 10 1 chunk +110 lines, -0 lines 0 comments Download
M test/get/cache_transformed_dependency_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M test/get/dry_run_does_not_apply_changes_test.dart View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M test/get/path/nonexistent_dir_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
A test/packages_file_test.dart View 1 2 3 4 5 6 7 8 9 10 1 chunk +90 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (5 generated)
Lasse Reichstein Nielsen
5 years, 8 months ago (2015-04-17 14:11:16 UTC) #1
Bob Nystrom
Looks pretty straightforward. It will be nice to be able to tear out the old ...
5 years, 8 months ago (2015-04-17 21:14:15 UTC) #3
Lasse Reichstein Nielsen
I've moved the packages.map code to a separate library, and begun adding code for creating ...
5 years, 7 months ago (2015-05-06 12:33:00 UTC) #5
Lasse Reichstein Nielsen
PTAL. Will try to add tests now.
5 years, 7 months ago (2015-05-12 11:43:05 UTC) #6
bakster
Random comments to the code. https://codereview.chromium.org/1096723002/diff/40001/sdk/lib/_internal/pub/lib/src/entrypoint.dart File sdk/lib/_internal/pub/lib/src/entrypoint.dart (right): https://codereview.chromium.org/1096723002/diff/40001/sdk/lib/_internal/pub/lib/src/entrypoint.dart#newcode553 sdk/lib/_internal/pub/lib/src/entrypoint.dart:553: if (fileName == 'packages' ...
5 years, 7 months ago (2015-05-12 12:02:56 UTC) #8
nweiz
https://codereview.chromium.org/1096723002/diff/40001/sdk/lib/_internal/pub/lib/src/entrypoint.dart File sdk/lib/_internal/pub/lib/src/entrypoint.dart (right): https://codereview.chromium.org/1096723002/diff/40001/sdk/lib/_internal/pub/lib/src/entrypoint.dart#newcode157 sdk/lib/_internal/pub/lib/src/entrypoint.dart:157: writePackagesMap(_packageGraph); Nit: I think this can fit on a ...
5 years, 7 months ago (2015-05-12 18:21:30 UTC) #9
sethladd
https://chromiumcodereview.appspot.com/1096723002/diff/60001/sdk/lib/_internal/pub/lib/src/package_locations.dart File sdk/lib/_internal/pub/lib/src/package_locations.dart (right): https://chromiumcodereview.appspot.com/1096723002/diff/60001/sdk/lib/_internal/pub/lib/src/package_locations.dart#newcode39 sdk/lib/_internal/pub/lib/src/package_locations.dart:39: # Dart tools, including Dart VM and and Dart ...
5 years, 7 months ago (2015-05-12 20:17:40 UTC) #11
Lasse Reichstein Nielsen
https://codereview.chromium.org/1096723002/diff/40001/sdk/lib/_internal/pub/lib/src/entrypoint.dart File sdk/lib/_internal/pub/lib/src/entrypoint.dart (right): https://codereview.chromium.org/1096723002/diff/40001/sdk/lib/_internal/pub/lib/src/entrypoint.dart#newcode157 sdk/lib/_internal/pub/lib/src/entrypoint.dart:157: writePackagesMap(_packageGraph); On 2015/05/12 18:21:29, nweiz wrote: > Nit: I ...
5 years, 7 months ago (2015-05-13 11:00:53 UTC) #12
karlklose
https://codereview.chromium.org/1096723002/diff/40001/sdk/lib/_internal/pub/lib/src/entrypoint.dart File sdk/lib/_internal/pub/lib/src/entrypoint.dart (right): https://codereview.chromium.org/1096723002/diff/40001/sdk/lib/_internal/pub/lib/src/entrypoint.dart#newcode553 sdk/lib/_internal/pub/lib/src/entrypoint.dart:553: if (fileName == 'packages' || fileName == "packages.map") return ...
5 years, 7 months ago (2015-05-13 11:44:01 UTC) #14
Lasse Reichstein Nielsen
https://codereview.chromium.org/1096723002/diff/40001/sdk/lib/_internal/pub/lib/src/entrypoint.dart File sdk/lib/_internal/pub/lib/src/entrypoint.dart (right): https://codereview.chromium.org/1096723002/diff/40001/sdk/lib/_internal/pub/lib/src/entrypoint.dart#newcode553 sdk/lib/_internal/pub/lib/src/entrypoint.dart:553: if (fileName == 'packages' || fileName == "packages.map") return ...
5 years, 7 months ago (2015-05-13 15:45:03 UTC) #15
Lasse Reichstein Nielsen
5 years, 7 months ago (2015-05-13 16:03:19 UTC) #16
Bob Nystrom
https://codereview.chromium.org/1096723002/diff/80001/sdk/lib/_internal/pub/lib/src/package_locations.dart File sdk/lib/_internal/pub/lib/src/package_locations.dart (right): https://codereview.chromium.org/1096723002/diff/80001/sdk/lib/_internal/pub/lib/src/package_locations.dart#newcode25 sdk/lib/_internal/pub/lib/src/package_locations.dart:25: void writePackagesMap(PackageGraph graph, {String file}) { On 2015/05/13 11:00:53, ...
5 years, 7 months ago (2015-05-13 16:20:56 UTC) #17
nweiz
https://codereview.chromium.org/1096723002/diff/40001/sdk/lib/_internal/pub/lib/src/entrypoint.dart File sdk/lib/_internal/pub/lib/src/entrypoint.dart (right): https://codereview.chromium.org/1096723002/diff/40001/sdk/lib/_internal/pub/lib/src/entrypoint.dart#newcode553 sdk/lib/_internal/pub/lib/src/entrypoint.dart:553: if (fileName == 'packages' || fileName == "packages.map") return ...
5 years, 7 months ago (2015-05-13 18:24:07 UTC) #18
Lasse Reichstein Nielsen
Need to write a test now. Any pointers on how to set it up to ...
5 years, 7 months ago (2015-05-19 10:26:13 UTC) #19
nweiz
> Need to write a test now. Any pointers on how to set it up ...
5 years, 7 months ago (2015-05-19 18:15:32 UTC) #20
Lasse Reichstein Nielsen
Reworked to use package:package_config and added a test. PTAL. What kind of tests would you ...
5 years, 6 months ago (2015-06-10 12:14:13 UTC) #21
nweiz
Additional tests I'd add: * Make sure this works with path dependencies. In particular, make ...
5 years, 6 months ago (2015-06-10 22:33:59 UTC) #22
Lasse Reichstein Nielsen
Addressed comments (except making error fatal - how?), PTAL again. https://codereview.chromium.org/1096723002/diff/120001/lib/src/entrypoint.dart File lib/src/entrypoint.dart (right): https://codereview.chromium.org/1096723002/diff/120001/lib/src/entrypoint.dart#newcode157 ...
5 years, 6 months ago (2015-06-11 11:21:03 UTC) #23
nweiz
This is getting there! Don't forget those additional tests, though. https://codereview.chromium.org/1096723002/diff/120001/lib/src/package_locations.dart File lib/src/package_locations.dart (right): https://codereview.chromium.org/1096723002/diff/120001/lib/src/package_locations.dart#newcode33 ...
5 years, 6 months ago (2015-06-12 23:48:08 UTC) #24
Bob Nystrom
https://codereview.chromium.org/1096723002/diff/120001/test/get/dot_packages_test.dart File test/get/dot_packages_test.dart (right): https://codereview.chromium.org/1096723002/diff/120001/test/get/dot_packages_test.dart#newcode15 test/get/dot_packages_test.dart:15: deps: {'baz': '2.2.2'}, On 2015/06/12 23:48:08, nweiz wrote: > ...
5 years, 6 months ago (2015-06-12 23:49:15 UTC) #25
Lasse Reichstein Nielsen
PTAL again :) https://codereview.chromium.org/1096723002/diff/120001/lib/src/package_locations.dart File lib/src/package_locations.dart (right): https://codereview.chromium.org/1096723002/diff/120001/lib/src/package_locations.dart#newcode33 lib/src/package_locations.dart:33: } catch (error, stackTrace) { On ...
5 years, 6 months ago (2015-06-23 14:54:34 UTC) #26
nweiz
lgtm! https://codereview.chromium.org/1096723002/diff/180001/test/descriptor/packages.dart File test/descriptor/packages.dart (right): https://codereview.chromium.org/1096723002/diff/180001/test/descriptor/packages.dart#newcode18 test/descriptor/packages.dart:18: Nit: extra newline. https://codereview.chromium.org/1096723002/diff/180001/test/packages_file_test.dart File test/packages_file_test.dart (right): https://codereview.chromium.org/1096723002/diff/180001/test/packages_file_test.dart#newcode67 ...
5 years, 6 months ago (2015-06-23 19:56:43 UTC) #27
nweiz
One other thing: before you commit, remove "proof-of-concept" from the CL description.
5 years, 6 months ago (2015-06-23 19:57:15 UTC) #28
Lasse Reichstein Nielsen
https://codereview.chromium.org/1096723002/diff/180001/test/packages_file_test.dart File test/packages_file_test.dart (right): https://codereview.chromium.org/1096723002/diff/180001/test/packages_file_test.dart#newcode67 test/packages_file_test.dart:67: On 2015/06/23 19:56:43, nweiz wrote: > Nit: extra newline ...
5 years, 6 months ago (2015-06-24 05:41:11 UTC) #29
Lasse Reichstein Nielsen
5 years, 6 months ago (2015-06-24 05:42:02 UTC) #30
Message was sent while issue was closed.
Committed patchset #11 (id:200001) manually as
6a1d7582e87c5a8324990a59fcd2c057aff25963 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698