From 243149892239b361c6b0c51d8ffc8caf57de5aef Mon Sep 17 00:00:00 2001 From: Zachary Anderson Date: Mon, 6 Nov 2023 06:59:27 -0800 Subject: [PATCH] Move some Dart packages to //flutter/third_party/pkg (flutter/engine#47654) As part of eliminating the Flutter buildroot (https://github.com/flutter/flutter/issues/67373), we are moving all third-party dependencies from //third_party to //flutter/third_party. Once all third-party dependencies have been migrated, tooling and config will be moved and the buildroot will be eliminated altogether. No tests changed because there is no semantic change to this PR. This is simply relocating a dependency. --- DEPS | 18 ++++++++--------- .../flutter/ci/licenses_golden/excluded_files | 18 ++++++++--------- .../flutter/ci/licenses_golden/tool_signature | 2 +- engine/src/flutter/ci/pubspec.yaml | 6 +++--- .../golden_tests_harvester/pubspec.yaml | 4 ++-- .../shell/platform/fuchsia/dart/BUILD.gn | 2 +- .../flutter/testing/benchmark/pubspec.yaml | 12 +++++------ engine/src/flutter/testing/dart/pubspec.yaml | 6 +++--- .../flutter/testing/scenario_app/pubspec.yaml | 6 +++--- .../testing/skia_gold_client/pubspec.yaml | 4 ++-- .../flutter/tools/android_lint/pubspec.yaml | 4 ++-- .../src/flutter/tools/clang_tidy/pubspec.yaml | 6 +++--- .../src/flutter/tools/githooks/pubspec.yaml | 6 +++--- .../src/flutter/tools/licenses/lib/paths.dart | 20 +++++++++---------- .../src/flutter/tools/licenses/pubspec.yaml | 2 +- .../pkg/engine_build_configs/pubspec.yaml | 6 +++--- .../tools/pkg/git_repo_tools/pubspec.yaml | 6 +++--- .../tools/pkg/process_fakes/pubspec.yaml | 4 ++-- 18 files changed, 65 insertions(+), 67 deletions(-) diff --git a/DEPS b/DEPS index b361bacd20..c51ad7f379 100644 --- a/DEPS +++ b/DEPS @@ -682,31 +682,31 @@ deps = { Var('flutter_git') + '/third_party/abseil-cpp.git' + '@' + '61833f2c057a2b1993d871e8c51156aed1dd4354', # Dart packages - 'src/third_party/pkg/archive': + 'src/flutter/third_party/pkg/archive': Var('github_git') + '/brendan-duncan/archive.git' + '@' + '9de7a0544457c6aba755ccb65abb41b0dc1db70d', # 3.1.2 - 'src/third_party/pkg/equatable': + 'src/flutter/third_party/pkg/equatable': Var('github_git') + '/felangel/equatable.git' + '@' + '2117551ff3054f8edb1a58f63ffe1832a8d25623', # 2.0.5 - 'src/third_party/pkg/flutter_packages': + 'src/flutter/third_party/pkg/flutter_packages': Var('flutter_git') + '/mirrors/packages' + '@' + '25454e63851fe7933f04d025606e68c1eac4fe0f', # various - 'src/third_party/pkg/gcloud': + 'src/flutter/third_party/pkg/gcloud': Var('github_git') + '/dart-lang/gcloud.git' + '@' + 'a5276b85c4714378e84b1fb478b8feeeb686ac26', # 0.8.6-dev - 'src/third_party/pkg/googleapis': + 'src/flutter/third_party/pkg/googleapis': Var('github_git') + '/google/googleapis.dart.git' + '@' + '526011f56d98eab183cc6075ee1392e8303e43e2', # various - 'src/third_party/pkg/platform': + 'src/flutter/third_party/pkg/platform': Var('dart_git') + '/platform.dart' + '@' + '1ffad63428bbd1b3ecaa15926bacfb724023648c', # 3.1.0 - 'src/third_party/pkg/process': + 'src/flutter/third_party/pkg/process': Var('dart_git') + '/process.dart' + '@' + '0c9aeac86dcc4e3a6cf760b76fed507107e244d5', # 4.2.1 - 'src/third_party/pkg/process_runner': + 'src/flutter/third_party/pkg/process_runner': Var('github_git') + '/google/process_runner.git' + '@' + 'f24c69efdcaf109168f23d381fa281453d2bc9b1', # 4.1.2 - 'src/third_party/pkg/vector_math': + 'src/flutter/third_party/pkg/vector_math': Var('dart_git') + '/external/github.com/google/vector_math.dart.git' + '@' + '0a5fd95449083d404df9768bc1b321b88a7d2eef', # 2.1.0 'src/flutter/third_party/imgui': diff --git a/engine/src/flutter/ci/licenses_golden/excluded_files b/engine/src/flutter/ci/licenses_golden/excluded_files index 3e061375ff..191623b7a2 100644 --- a/engine/src/flutter/ci/licenses_golden/excluded_files +++ b/engine/src/flutter/ci/licenses_golden/excluded_files @@ -542,6 +542,15 @@ ../../../flutter/third_party/libtess2/README.md ../../../flutter/third_party/libtess2/alg_outline.md ../../../flutter/third_party/ninja +../../../flutter/third_party/pkg/archive +../../../flutter/third_party/pkg/equatable +../../../flutter/third_party/pkg/flutter_packages +../../../flutter/third_party/pkg/gcloud +../../../flutter/third_party/pkg/googleapis +../../../flutter/third_party/pkg/platform +../../../flutter/third_party/pkg/process +../../../flutter/third_party/pkg/process_runner +../../../flutter/third_party/pkg/vector_math ../../../flutter/third_party/rapidjson/.git ../../../flutter/third_party/rapidjson/.gitattributes ../../../flutter/third_party/rapidjson/.gitignore @@ -2640,15 +2649,6 @@ ../../../third_party/perfetto/ui/src/plugins/dev.perfetto.AndroidPerf/OWNERS ../../../third_party/perfetto/ui/src/plugins/dev.perfetto.LargeScreensPerf/OWNERS ../../../third_party/perfetto/ui/src/test -../../../third_party/pkg/archive -../../../third_party/pkg/equatable -../../../third_party/pkg/flutter_packages -../../../third_party/pkg/gcloud -../../../third_party/pkg/googleapis -../../../third_party/pkg/platform -../../../third_party/pkg/process -../../../third_party/pkg/process_runner -../../../third_party/pkg/vector_math ../../../third_party/protobuf ../../../third_party/pyyaml ../../../third_party/root_certificates/.git diff --git a/engine/src/flutter/ci/licenses_golden/tool_signature b/engine/src/flutter/ci/licenses_golden/tool_signature index 15bfaeedad..42b033e5fe 100644 --- a/engine/src/flutter/ci/licenses_golden/tool_signature +++ b/engine/src/flutter/ci/licenses_golden/tool_signature @@ -1,2 +1,2 @@ -Signature: 58eabd70bbf9797956ee94d042df857d +Signature: 69d986a7b2275b798b574b6aea2c1b78 diff --git a/engine/src/flutter/ci/pubspec.yaml b/engine/src/flutter/ci/pubspec.yaml index ddb73b23a1..c92fb333cc 100644 --- a/engine/src/flutter/ci/pubspec.yaml +++ b/engine/src/flutter/ci/pubspec.yaml @@ -48,10 +48,10 @@ dependency_overrides: path: path: ../../third_party/dart/third_party/pkg/path platform: - path: ../../third_party/pkg/platform + path: ../third_party/pkg/platform process: - path: ../../third_party/pkg/process + path: ../third_party/pkg/process process_runner: - path: ../../third_party/pkg/process_runner + path: ../third_party/pkg/process_runner smith: path: ../../third_party/dart/pkg/smith diff --git a/engine/src/flutter/impeller/golden_tests_harvester/pubspec.yaml b/engine/src/flutter/impeller/golden_tests_harvester/pubspec.yaml index 02d10c2c64..3621938e45 100644 --- a/engine/src/flutter/impeller/golden_tests_harvester/pubspec.yaml +++ b/engine/src/flutter/impeller/golden_tests_harvester/pubspec.yaml @@ -35,8 +35,8 @@ dependency_overrides: path: path: ../../../third_party/dart/third_party/pkg/path platform: - path: ../../../third_party/pkg/platform + path: ../../third_party/pkg/platform process: - path: ../../../third_party/pkg/process + path: ../../third_party/pkg/process typed_data: path: ../../../third_party/dart/third_party/pkg/typed_data diff --git a/engine/src/flutter/shell/platform/fuchsia/dart/BUILD.gn b/engine/src/flutter/shell/platform/fuchsia/dart/BUILD.gn index 7ef6b7e661..fc5c5de52b 100644 --- a/engine/src/flutter/shell/platform/fuchsia/dart/BUILD.gn +++ b/engine/src/flutter/shell/platform/fuchsia/dart/BUILD.gn @@ -364,7 +364,7 @@ dart_library("quiver") { } dart_library("vector_math") { - package_root = "//third_party/pkg/vector_math" + package_root = "//flutter/third_party/pkg/vector_math" package_name = "vector_math" pubspec = "$package_root/pubspec.yaml" diff --git a/engine/src/flutter/testing/benchmark/pubspec.yaml b/engine/src/flutter/testing/benchmark/pubspec.yaml index 545d455b04..78e233deb3 100644 --- a/engine/src/flutter/testing/benchmark/pubspec.yaml +++ b/engine/src/flutter/testing/benchmark/pubspec.yaml @@ -26,7 +26,7 @@ dev_dependencies: dependency_overrides: _discoveryapis_commons: - path: ../../../third_party/pkg/googleapis/discoveryapis_commons + path: ../../third_party/pkg/googleapis/discoveryapis_commons args: path: ../../../third_party/dart/third_party/pkg/args async_helper: @@ -40,15 +40,15 @@ dependency_overrides: crypto : path: ../../../third_party/dart/third_party/pkg/crypto equatable: - path: ../../../third_party/pkg/equatable + path: ../../third_party/pkg/equatable expect: path: ../../../third_party/dart/pkg/expect gcloud: - path: ../../../third_party/pkg/gcloud + path: ../../third_party/pkg/gcloud googleapis: - path: ../../../third_party/pkg/googleapis/generated/googleapis + path: ../../third_party/pkg/googleapis/generated/googleapis googleapis_auth: - path: ../../../third_party/pkg/googleapis/googleapis_auth + path: ../../third_party/pkg/googleapis/googleapis_auth http: path: ../../../third_party/dart/third_party/pkg/http/pkgs/http http_parser: @@ -60,7 +60,7 @@ dependency_overrides: meta: path: ../../../third_party/dart/pkg/meta metrics_center: - path: ../../../third_party/pkg/flutter_packages/packages/metrics_center + path: ../../third_party/pkg/flutter_packages/packages/metrics_center path: path: ../../../third_party/dart/third_party/pkg/path smith: diff --git a/engine/src/flutter/testing/dart/pubspec.yaml b/engine/src/flutter/testing/dart/pubspec.yaml index e13765a197..078a449e1d 100644 --- a/engine/src/flutter/testing/dart/pubspec.yaml +++ b/engine/src/flutter/testing/dart/pubspec.yaml @@ -47,9 +47,9 @@ dependency_overrides: path: path: ../../../third_party/dart/third_party/pkg/path platform: - path: ../../../third_party/pkg/platform + path: ../../third_party/pkg/platform process: - path: ../../../third_party/pkg/process + path: ../../third_party/pkg/process protobuf: path: ../../../third_party/dart/third_party/pkg/protobuf/protobuf smith: @@ -61,7 +61,7 @@ dependency_overrides: typed_data: path: ../../../third_party/dart/third_party/pkg/typed_data vector_math: - path: ../../../third_party/pkg/vector_math + path: ../../third_party/pkg/vector_math vm_service: path: ../../../third_party/dart/pkg/vm_service vm_service_protos: diff --git a/engine/src/flutter/testing/scenario_app/pubspec.yaml b/engine/src/flutter/testing/scenario_app/pubspec.yaml index fb13f5848f..51b1e0da40 100644 --- a/engine/src/flutter/testing/scenario_app/pubspec.yaml +++ b/engine/src/flutter/testing/scenario_app/pubspec.yaml @@ -38,9 +38,9 @@ dependency_overrides: path: path: ../../../third_party/dart/third_party/pkg/path platform: - path: ../../../third_party/pkg/platform + path: ../../third_party/pkg/platform process: - path: ../../../third_party/pkg/process + path: ../../third_party/pkg/process skia_gold_client: path: ../../testing/skia_gold_client sky_engine: @@ -48,4 +48,4 @@ dependency_overrides: typed_data: path: ../../../third_party/dart/third_party/pkg/typed_data vector_math: - path: ../../../third_party/pkg/vector_math + path: ../../third_party/pkg/vector_math diff --git a/engine/src/flutter/testing/skia_gold_client/pubspec.yaml b/engine/src/flutter/testing/skia_gold_client/pubspec.yaml index 693424d535..a728eb7ba6 100644 --- a/engine/src/flutter/testing/skia_gold_client/pubspec.yaml +++ b/engine/src/flutter/testing/skia_gold_client/pubspec.yaml @@ -34,8 +34,8 @@ dependency_overrides: path: path: ../../../third_party/dart/third_party/pkg/path platform: - path: ../../../third_party/pkg/platform + path: ../../third_party/pkg/platform process: - path: ../../../third_party/pkg/process + path: ../../third_party/pkg/process typed_data: path: ../../../third_party/dart/third_party/pkg/typed_data diff --git a/engine/src/flutter/tools/android_lint/pubspec.yaml b/engine/src/flutter/tools/android_lint/pubspec.yaml index 236ae4e40a..125b864b5d 100644 --- a/engine/src/flutter/tools/android_lint/pubspec.yaml +++ b/engine/src/flutter/tools/android_lint/pubspec.yaml @@ -30,6 +30,6 @@ dependency_overrides: path: path: ../../../third_party/dart/third_party/pkg/path platform: - path: ../../../third_party/pkg/platform + path: ../../third_party/pkg/platform process: - path: ../../../third_party/pkg/process + path: ../../third_party/pkg/process diff --git a/engine/src/flutter/tools/clang_tidy/pubspec.yaml b/engine/src/flutter/tools/clang_tidy/pubspec.yaml index 0a5625c897..2a54bebae0 100644 --- a/engine/src/flutter/tools/clang_tidy/pubspec.yaml +++ b/engine/src/flutter/tools/clang_tidy/pubspec.yaml @@ -56,12 +56,12 @@ dependency_overrides: path: path: ../../../third_party/dart/third_party/pkg/path platform: - path: ../../../third_party/pkg/platform + path: ../../third_party/pkg/platform process: - path: ../../../third_party/pkg/process + path: ../../third_party/pkg/process process_fakes: path: ../pkg/process_fakes process_runner: - path: ../../../third_party/pkg/process_runner + path: ../../third_party/pkg/process_runner smith: path: ../../../third_party/dart/pkg/smith diff --git a/engine/src/flutter/tools/githooks/pubspec.yaml b/engine/src/flutter/tools/githooks/pubspec.yaml index ae8bca757b..ef2cafcf02 100644 --- a/engine/src/flutter/tools/githooks/pubspec.yaml +++ b/engine/src/flutter/tools/githooks/pubspec.yaml @@ -54,10 +54,10 @@ dependency_overrides: path: path: ../../../third_party/dart/third_party/pkg/path platform: - path: ../../../third_party/pkg/platform + path: ../../third_party/pkg/platform process: - path: ../../../third_party/pkg/process + path: ../../third_party/pkg/process process_runner: - path: ../../../third_party/pkg/process_runner + path: ../../third_party/pkg/process_runner smith: path: ../../../third_party/dart/pkg/smith diff --git a/engine/src/flutter/tools/licenses/lib/paths.dart b/engine/src/flutter/tools/licenses/lib/paths.dart index 23ccd816cf..12a701a22b 100644 --- a/engine/src/flutter/tools/licenses/lib/paths.dart +++ b/engine/src/flutter/tools/licenses/lib/paths.dart @@ -44,6 +44,15 @@ final Set skippedPaths = { r'flutter/third_party/gn', r'flutter/third_party/imgui', r'flutter/third_party/ninja', // build system + r'flutter/third_party/pkg/archive', // contains nothing that ends up in the binary executable + r'flutter/third_party/pkg/equatable', + r'flutter/third_party/pkg/flutter_packages', + r'flutter/third_party/pkg/gcloud', + r'flutter/third_party/pkg/googleapis', + r'flutter/third_party/pkg/platform', + r'flutter/third_party/pkg/process', + r'flutter/third_party/pkg/process_runner', + r'flutter/third_party/pkg/vector_math', r'flutter/third_party/rapidjson/contrib', // contains nothing that ends up in the binary executable r'flutter/third_party/rapidjson/doc', // documentation r'flutter/third_party/shaderc/third_party/LICENSE.glslang', // unclear what the purpose of this file is @@ -152,17 +161,6 @@ final Set skippedPaths = { r'third_party/perfetto/src/traced', // contains nothing that ends up in the binary executable r'third_party/perfetto/src/tracing', // contains nothing that ends up in the binary executable r'third_party/protobuf', // build-time dependency only - r'third_party/pkg/archive', // contains nothing that ends up in the binary executable - r'third_party/pkg/equatable', - r'third_party/pkg/file', - r'third_party/pkg/flutter_packages', - r'third_party/pkg/gcloud', - r'third_party/pkg/googleapis', - r'third_party/pkg/platform', - r'third_party/pkg/process', - r'third_party/pkg/process_runner', - r'third_party/pkg/quiver', - r'third_party/pkg/vector_math', r'third_party/pyyaml', // build-time dependency only r'third_party/root_certificates/certdata.pem', r'third_party/root_certificates/certdata.txt', diff --git a/engine/src/flutter/tools/licenses/pubspec.yaml b/engine/src/flutter/tools/licenses/pubspec.yaml index 35a59cebc7..3ae7b745a9 100644 --- a/engine/src/flutter/tools/licenses/pubspec.yaml +++ b/engine/src/flutter/tools/licenses/pubspec.yaml @@ -30,7 +30,7 @@ dev_dependencies: dependency_overrides: archive: - path: ../../../third_party/pkg/archive + path: ../../third_party/pkg/archive args: path: ../../../third_party/dart/third_party/pkg/args async_helper: diff --git a/engine/src/flutter/tools/pkg/engine_build_configs/pubspec.yaml b/engine/src/flutter/tools/pkg/engine_build_configs/pubspec.yaml index f3d7bf02bd..95020f0d59 100644 --- a/engine/src/flutter/tools/pkg/engine_build_configs/pubspec.yaml +++ b/engine/src/flutter/tools/pkg/engine_build_configs/pubspec.yaml @@ -52,10 +52,10 @@ dependency_overrides: path: path: ../../../../third_party/dart/third_party/pkg/path platform: - path: ../../../../third_party/pkg/platform + path: ../../../third_party/pkg/platform process: - path: ../../../../third_party/pkg/process + path: ../../../third_party/pkg/process process_runner: - path: ../../../../third_party/pkg/process_runner + path: ../../../third_party/pkg/process_runner smith: path: ../../../../third_party/dart/pkg/smith diff --git a/engine/src/flutter/tools/pkg/git_repo_tools/pubspec.yaml b/engine/src/flutter/tools/pkg/git_repo_tools/pubspec.yaml index d1fda23da4..04147bf005 100644 --- a/engine/src/flutter/tools/pkg/git_repo_tools/pubspec.yaml +++ b/engine/src/flutter/tools/pkg/git_repo_tools/pubspec.yaml @@ -49,12 +49,12 @@ dependency_overrides: path: path: ../../../../third_party/dart/third_party/pkg/path platform: - path: ../../../../third_party/pkg/platform + path: ../../../third_party/pkg/platform process: - path: ../../../../third_party/pkg/process + path: ../../../third_party/pkg/process process_fakes: path: ../process_fakes process_runner: - path: ../../../../third_party/pkg/process_runner + path: ../../../third_party/pkg/process_runner smith: path: ../../../../third_party/dart/pkg/smith diff --git a/engine/src/flutter/tools/pkg/process_fakes/pubspec.yaml b/engine/src/flutter/tools/pkg/process_fakes/pubspec.yaml index c2e2c3e6f2..1df02f7274 100644 --- a/engine/src/flutter/tools/pkg/process_fakes/pubspec.yaml +++ b/engine/src/flutter/tools/pkg/process_fakes/pubspec.yaml @@ -31,6 +31,6 @@ dependency_overrides: path: path: ../../../../third_party/dart/third_party/pkg/path platform: - path: ../../../../third_party/pkg/platform + path: ../../../third_party/pkg/platform process: - path: ../../../../third_party/pkg/process + path: ../../../third_party/pkg/process