Skip to content

Commit 6012588

Browse files
devoncarewCommit Queue
authored andcommitted
[deps] remove unused deps (packages which are now in dart-lang/core)
Change-Id: Ief1a981ea125ac1d2ec5beba6e0535be230bc41e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/392467 Commit-Queue: Devon Carew <[email protected]> Reviewed-by: Moritz Sümmermann <[email protected]>
1 parent c9a8bbd commit 6012588

File tree

4 files changed

+15
-36
lines changed

4 files changed

+15
-36
lines changed

DEPS

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -120,18 +120,12 @@ vars = {
120120
# EOL comment after a dependency to disable this and pin it at its current
121121
# revision.
122122

123-
"args_rev": "09c0fca1785c9df39288a48f767994eed80bed40", #
124-
"async_rev": "d6a6a4dbe0c636e42d6cf4ede88ed5a33e35a6ca",
125123
"bazel_worker_rev": "aa3cc9e826350b960e0c5a67e6065bcedba8b0ac",
126124
"benchmark_harness_rev": "44f125ae1d045aa3de09fe88a8dd70cb7352d563",
127125
"browser_launcher_rev": "e5fc5d488eb5038bfec2a6690c72ab8dd353e101",
128-
"characters_rev": "7633a16a22c626e19ca750223237396315268a06",
129126
"cli_util_rev": "c36b3941e38092d6d6f87ac27d9e88f153d3ac38",
130127
"clock_rev": "8dfee808c53302269c62954726d0db049f53bbc6",
131-
"collection_rev": "96afcc2fce622ea7e75053af5b73f8db07491bc4",
132-
"convert_rev": "836082a3a5e9c6bb890d7fe025098f38fd5b8a3e",
133128
"core_rev": "9ad68884a10ad75bb859dcac9ab057e78b0d7df3",
134-
"crypto_rev": "255edfb5ab8d01e7bb2302b97a7f5124ef82fd1b",
135129
"csslib_rev": "a3700b05bbcc42782e8a7024790dbf019d89c249",
136130
# Note: Updates to dart_style have to be coordinated with the infrastructure
137131
# team so that the internal formatter `tools/sdks/dart-sdk/bin/dart format`
@@ -146,7 +140,6 @@ vars = {
146140
"dart_style_rev": "5d35f4d829ffb8532d345d95d3e9504ae6cd839e", # disable tools/rev_sdk_deps.dart
147141
"dartdoc_rev": "5168f81a7d774effd7f8520cd170ffcb180f7c39",
148142
"ecosystem_rev": "66ddc4fce068084bc68fe0118ca238b2ab8da9b5",
149-
"fixnum_rev": "854397228d1892e1b8374f97d172667c0c1ba9c7",
150143
"flute_rev": "a531c96a8b43d015c6bfbbfe3ab54867b0763b8b",
151144
"glob_rev": "00a9c82d31c01ae88ec9ae4021d842e9b832aa52",
152145
"html_rev": "6d3bc86cf2ab530ef3fa5f84b5980dc318a02af4",
@@ -156,14 +149,12 @@ vars = {
156149
"json_rpc_2_rev": "c9b616bded8cdb5bfdc836ba7648afa6aba40062",
157150
"leak_tracker_rev": "f5620600a5ce1c44f65ddaa02001e200b096e14c", # manually rolled
158151
"lints_rev": "19d99bc64a03a6f32f05e71481edf151032ebf5b",
159-
"logging_rev": "a41a5089d20f734a21c02739042bace5073cbed3",
160152
"markdown_rev": "207bb4416f9ca3bb60086e56ed8581da929916ae",
161153
"material_color_utilities_rev": "799b6ba2f3f1c28c67cc7e0b4f18e0c7d7f3c03e",
162154
"mockito_rev": "57d484f9b8e7f6a504966a901174358a42fa932a",
163155
# dart-native-interop-team@ is rolling breaking changes manually while the assets features are in experimental.
164156
"native_rev": "659511886501bcce638c3966590df04984909ef0", # disable tools/rev_sdk_deps.dart
165157
"package_config_rev": "bafff8e90be25e1985f7e3ee40ea1d22571a93e6",
166-
"path_rev": "7e3d5d87220133ad9cc99f82e85a826011a62859",
167158
"pool_rev": "7bfc71b39742753a88688e56e55a828a2f5dc0bf",
168159
"protobuf_rev": "ccf104dbc36929c0f8708285d5f3a8fae206343e",
169160
"pub_rev": "1d7b0d9a35be9cff5d071f6cf17fcdcde2b7ecc5", # disable tools/rev_sdk_deps.dart
@@ -183,7 +174,6 @@ vars = {
183174
"test_process_rev": "52ee3f5ab70ed965bb7122c1d499081fbccd0bde",
184175
"test_reflective_loader_rev": "598af2f503955020af0eaa82558d574a03934078",
185176
"tools_rev": "f7b2b53dee019834942b32278c3cfaf3e843bc6a",
186-
"typed_data_rev": "b269d394681f4378d4147704a96148b3eabaa08c",
187177
"vector_math_rev": "da9889f5859d7258772d6627abde2f5c530cae8d",
188178
"watcher_rev": "3b850778ad0b62db3aa2cfe48832870c2461db30",
189179
"web_rev": "d3a61aa9b4e43cdaf949a69c159038cdecf5681a",
@@ -376,35 +366,19 @@ deps = {
376366
Var('chromium_git') + '/external/github.com/mdn/browser-compat-data' +
377367
"@" + Var("browser-compat-data_tag"),
378368

379-
Var("dart_root") + "/third_party/pkg/args":
380-
Var("dart_git") + "args.git" + "@" + Var("args_rev"),
381-
Var("dart_root") + "/third_party/pkg/async":
382-
Var("dart_git") + "async.git" + "@" + Var("async_rev"),
383369
Var("dart_root") + "/third_party/pkg/bazel_worker":
384370
Var("dart_git") + "bazel_worker.git" + "@" + Var("bazel_worker_rev"),
385371
Var("dart_root") + "/third_party/pkg/benchmark_harness":
386372
Var("dart_git") + "benchmark_harness.git" + "@" +
387373
Var("benchmark_harness_rev"),
388374
Var("dart_root") + "/third_party/pkg/browser_launcher":
389375
Var("dart_git") + "browser_launcher.git" + "@" + Var("browser_launcher_rev"),
390-
Var("dart_root") + "/third_party/pkg/characters": {
391-
# Contact athom@ or ensure that license requirements are met before using
392-
# this dependency in other parts of the Dart SDK.
393-
"url": Var("dart_git") + "characters.git" + "@" + Var("characters_rev"),
394-
"condition": "checkout_flute",
395-
},
396376
Var("dart_root") + "/third_party/pkg/cli_util":
397377
Var("dart_git") + "cli_util.git" + "@" + Var("cli_util_rev"),
398378
Var("dart_root") + "/third_party/pkg/clock":
399379
Var("dart_git") + "clock.git" + "@" + Var("clock_rev"),
400-
Var("dart_root") + "/third_party/pkg/collection":
401-
Var("dart_git") + "collection.git" + "@" + Var("collection_rev"),
402-
Var("dart_root") + "/third_party/pkg/convert":
403-
Var("dart_git") + "convert.git" + "@" + Var("convert_rev"),
404380
Var("dart_root") + "/third_party/pkg/core":
405381
Var("dart_git") + "core.git" + "@" + Var("core_rev"),
406-
Var("dart_root") + "/third_party/pkg/crypto":
407-
Var("dart_git") + "crypto.git" + "@" + Var("crypto_rev"),
408382
Var("dart_root") + "/third_party/pkg/csslib":
409383
Var("dart_git") + "csslib.git" + "@" + Var("csslib_rev"),
410384
Var("dart_root") + "/third_party/pkg/dart_style":
@@ -413,8 +387,6 @@ deps = {
413387
Var("dart_git") + "dartdoc.git" + "@" + Var("dartdoc_rev"),
414388
Var("dart_root") + "/third_party/pkg/ecosystem":
415389
Var("dart_git") + "ecosystem.git" + "@" + Var("ecosystem_rev"),
416-
Var("dart_root") + "/third_party/pkg/fixnum":
417-
Var("dart_git") + "fixnum.git" + "@" + Var("fixnum_rev"),
418390
Var("dart_root") + "/third_party/flute": {
419391
"url": Var("dart_git") + "flute.git" + "@" + Var("flute_rev"),
420392
"condition": "checkout_flute",
@@ -436,8 +408,6 @@ deps = {
436408
Var("dart_git") + "leak_tracker.git" + "@" + Var("leak_tracker_rev"),
437409
Var("dart_root") + "/third_party/pkg/lints":
438410
Var("dart_git") + "lints.git" + "@" + Var("lints_rev"),
439-
Var("dart_root") + "/third_party/pkg/logging":
440-
Var("dart_git") + "logging.git" + "@" + Var("logging_rev"),
441411
Var("dart_root") + "/third_party/pkg/markdown":
442412
Var("dart_git") + "markdown.git" + "@" + Var("markdown_rev"),
443413
Var("dart_root") + "/third_party/pkg/material_color_utilities": {
@@ -453,8 +423,6 @@ deps = {
453423
Var("dart_root") + "/third_party/pkg/package_config":
454424
Var("dart_git") + "package_config.git" +
455425
"@" + Var("package_config_rev"),
456-
Var("dart_root") + "/third_party/pkg/path":
457-
Var("dart_git") + "path.git" + "@" + Var("path_rev"),
458426
Var("dart_root") + "/third_party/pkg/pool":
459427
Var("dart_git") + "pool.git" + "@" + Var("pool_rev"),
460428
Var("dart_root") + "/third_party/pkg/protobuf":
@@ -497,8 +465,6 @@ deps = {
497465
"@" + Var("test_reflective_loader_rev"),
498466
Var("dart_root") + "/third_party/pkg/tools":
499467
Var("dart_git") + "tools.git" + "@" + Var("tools_rev"),
500-
Var("dart_root") + "/third_party/pkg/typed_data":
501-
Var("dart_git") + "typed_data.git" + "@" + Var("typed_data_rev"),
502468
Var("dart_root") + "/third_party/pkg/vector_math":
503469
Var("dart_git") + "external/github.com/google/vector_math.dart.git" +
504470
"@" + Var("vector_math_rev"),

pkg/modular_test/lib/src/loader.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ packages:
261261
expect: pkg/expect/lib
262262
smith: pkg/smith/lib
263263
meta: pkg/meta/lib
264-
collection: third_party/pkg/collection/lib
264+
collection: third_party/pkg/core/pkgs/collection/lib
265265
''';
266266

267267
/// Report an conflict error.

tests/standalone/package/.dart_tool/package_config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
{
1111
"name": "path",
12-
"rootUri": "../../../../third_party/pkg/path",
12+
"rootUri": "../../../../third_party/pkg/core/pkgs/path",
1313
"packageUri": "lib/",
1414
"languageVersion": "3.0"
1515
},

tools/generate_package_config.dart

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,19 @@ void main(List<String> args) {
8888
];
8989
packages.sort((a, b) => a.name.compareTo(b.name));
9090

91+
// Remove specific packages.
92+
final packagesToRemove = {
93+
// If we're not using flute (i.e., this is a standard checkout), do not
94+
// include package:characters in the generated package config file. Contact
95+
// athom@ or ensure that license requirements are met before using this
96+
// dependency in other parts of the Dart SDK.
97+
if (!fluteExists) 'characters',
98+
};
99+
100+
packages.removeWhere((p) {
101+
return packagesToRemove.contains(p.name);
102+
});
103+
91104
// Check for duplicate packages - the same package sourced from multiple
92105
// repositories.
93106
final uniqueNames = packages.map((p) => p.name).toSet();

0 commit comments

Comments
 (0)