From e30128888568e56688ad8b6443030cd77de5dbc1 Mon Sep 17 00:00:00 2001 From: Matan Lurey Date: Fri, 26 Jul 2024 10:35:50 -0700 Subject: [PATCH] Pub workspace-ify most of `testing/` and parts of `tools/` (flutter/engine#54124) Replaces and closes https://github.com/flutter/engine/pull/53997. This PR migrates the following packages to the pub workspace: - testing/benchmark - testing/dart - testing/litetest - testing/pkg_test_demo - testing/scenario_app - testing/skia_gold_client - testing/symbols - tools/golden_tests_harvester - tools/pkg/process_fakes It also makes minor changes to the Dart build rules in order to resolve the root package_config, instead of per-package. I am _not_ totally confident of the `_embedder.yaml` change, but I also can't explain what is needed to continue analyzing `lib/ui` without analysis failures that all of the symbols in `dart:nativewrappers` are missing. --- engine/src/flutter/build/dart/rules.gni | 40 ++++-- engine/src/flutter/lib/web_ui/pubspec.yaml | 4 + engine/src/flutter/pubspec.yaml | 122 +++++++++++++++++- .../packages/sky_engine/lib/_embedder.yaml | 2 +- .../flutter/testing/benchmark/pubspec.yaml | 66 +--------- engine/src/flutter/testing/dart/BUILD.gn | 1 - .../flutter/testing/dart/observatory/BUILD.gn | 1 - engine/src/flutter/testing/dart/pubspec.yaml | 58 +-------- .../testing/pkg_test_demo/pubspec.yaml | 115 +---------------- .../src/flutter/testing/scenario_app/BUILD.gn | 1 - .../flutter/testing/scenario_app/pubspec.yaml | 49 +------ .../testing/skia_gold_client/pubspec.yaml | 56 ++------ .../src/flutter/testing/symbols/pubspec.yaml | 18 +-- .../tools/golden_tests_harvester/pubspec.yaml | 45 +------ .../tools/pkg/process_fakes/pubspec.yaml | 26 +--- .../web_sdk/web_test_utils/pubspec.yaml | 2 + 16 files changed, 201 insertions(+), 405 deletions(-) diff --git a/engine/src/flutter/build/dart/rules.gni b/engine/src/flutter/build/dart/rules.gni index 6770a8411d..1255a1dd97 100644 --- a/engine/src/flutter/build/dart/rules.gni +++ b/engine/src/flutter/build/dart/rules.gni @@ -49,13 +49,20 @@ template("flutter_frontend_server") { } packages_args = [] + package_config = "" if (defined(invoker.package_config)) { - packages_args += [ - "--packages", - rebase_path(invoker.package_config, root_build_dir), - ] + package_config = rebase_path(invoker.package_config, root_build_dir) + } else { + # Use the root engine package config by default. + # As we move towards a single pub workspace for the engine, this will be + # the correct package config to use, as we will no longer have a per-package + # .dart_tool/package_config.json. + package_config = rebase_path("//flutter/.dart_tool/package_config.json") } - + packages_args += [ + "--packages", + package_config, + ] snapshot_depfile = "$kernel_output.d" common_vm_args = [ "--disable-dart-dev" ] @@ -125,7 +132,8 @@ template("flutter_frontend_server") { # as the app-jit, aot-elf, or aot-assembly snapshot for targeting Flutter on # Android or iOS. # -# Invoker must supply dart_main and package_config. Invoker may optionally +# Invoker must supply dart_main. Invoker may optionally supply package_config, +# which otherwise defaults to the repo-wide pacakge_config, and optionally # supply aot as a boolean and product as a boolean. # # On Android, the invoker may provide output_aot_lib as a string to override @@ -133,8 +141,6 @@ template("flutter_frontend_server") { template("flutter_snapshot") { assert(!is_fuchsia) assert(defined(invoker.main_dart), "main_dart is a required parameter.") - assert(defined(invoker.package_config), - "package_config is a required parameter.") kernel_target = "_${target_name}_kernel" snapshot_target = "_${target_name}_snapshot" @@ -170,11 +176,19 @@ template("flutter_snapshot") { } } - flutter_frontend_server(kernel_target) { - main_dart = invoker.main_dart - package_config = invoker.package_config - kernel_output = kernel_output - extra_args = extra_frontend_server_args + if (defined(invoker.package_config)) { + flutter_frontend_server(kernel_target) { + main_dart = invoker.main_dart + package_config = invoker.package_config + kernel_output = kernel_output + extra_args = extra_frontend_server_args + } + } else { + flutter_frontend_server(kernel_target) { + main_dart = invoker.main_dart + kernel_output = kernel_output + extra_args = extra_frontend_server_args + } } compiled_action(snapshot_target) { diff --git a/engine/src/flutter/lib/web_ui/pubspec.yaml b/engine/src/flutter/lib/web_ui/pubspec.yaml index 59d9405abd..eb4d29f6b0 100644 --- a/engine/src/flutter/lib/web_ui/pubspec.yaml +++ b/engine/src/flutter/lib/web_ui/pubspec.yaml @@ -58,3 +58,7 @@ dev_dependencies: dependency_overrides: engine_repo_tools: path: ../../tools/pkg/engine_repo_tools + git_repo_tools: + path: ../../tools/pkg/git_repo_tools + skia_gold_client: + path: ../../testing/skia_gold_client diff --git a/engine/src/flutter/pubspec.yaml b/engine/src/flutter/pubspec.yaml index 0c5f16b375..cae5252a3c 100644 --- a/engine/src/flutter/pubspec.yaml +++ b/engine/src/flutter/pubspec.yaml @@ -80,8 +80,16 @@ environment: # Declare all packages that are part of the workspace. workspace: + - testing/benchmark + - testing/dart - testing/litetest + - testing/pkg_test_demo + - testing/scenario_app + - testing/skia_gold_client + - testing/symbols - tools/engine_tool + - tools/golden_tests_harvester + - tools/pkg/process_fakes # Declare all dependencies that are used by one or more packages. # @@ -109,6 +117,14 @@ dependencies: process_runner: any smith: any +dev_dependencies: + litetest: + path: ./testing/litetest + process_fakes: + path: ./tools/pkg/process_fakes + skia_gold_client: + path: ./testing/skia_gold_client + # Instructs pub on how to resolve the dependencies that are part of "DEPS". # # For historic reasons, there are ~3 or so places packages might be located: @@ -130,43 +146,145 @@ dependencies: # of available packages here: # . dependency_overrides: + _discoveryapis_commons: + path: ./third_party/pkg/googleapis/discoveryapis_commons + _fe_analyzer_shared: + path: ./third_party/dart/pkg/_fe_analyzer_shared + _macros: + path: ./third_party/dart/pkg/_macros + analyzer: + path: ./third_party/dart/pkg/analyzer args: path: ./third_party/dart/third_party/pkg/args async: path: ./third_party/dart/third_party/pkg/async async_helper: path: ./third_party/dart/pkg/async_helper + boolean_selector: + path: ./third_party/dart/third_party/pkg/boolean_selector collection: path: ./third_party/dart/third_party/pkg/collection + convert: + path: ./third_party/dart/third_party/pkg/convert + coverage: + path: ./third_party/pkg/coverage + crypto: + path: ./third_party/dart/third_party/pkg/crypto + dir_contents_diff: + path: ./tools/dir_contents_diff engine_build_configs: path: ./tools/pkg/engine_build_configs engine_repo_tools: path: ./tools/pkg/engine_repo_tools + equatable: + path: ./third_party/pkg/equatable expect: path: ./third_party/dart/pkg/expect file: path: ./third_party/dart/third_party/pkg/file/packages/file + ffi: + path: ./third_party/dart/third_party/pkg/native/pkgs/ffi + fixnum: + path: ./third_party/dart/third_party/pkg/fixnum + frontend_server_client: + path: ./third_party/dart/third_party/pkg/webdev/frontend_server_client + gcloud: + path: ./third_party/pkg/gcloud + git_repo_tools: + path: ./tools/pkg/git_repo_tools + glob: + path: ./third_party/dart/third_party/pkg/glob + googleapis: + path: ./third_party/pkg/googleapis/generated/googleapis + googleapis_auth: + path: ./third_party/pkg/googleapis/googleapis_auth + http: + path: ./third_party/dart/third_party/pkg/http/pkgs/http + http_multi_server: + path: ./third_party/dart/third_party/pkg/http_multi_server + http_parser: + path: ./third_party/dart/third_party/pkg/http_parser + io: + path: ./third_party/pkg/io + js: + path: ./third_party/dart/pkg/js logging: path: ./third_party/dart/third_party/pkg/logging + macros: + path: ./third_party/dart/pkg/macros + matcher: + path: ./third_party/dart/third_party/pkg/matcher meta: path: ./third_party/dart/pkg/meta + metrics_center: + path: ./third_party/pkg/flutter_packages/packages/metrics_center + mime: + path: ./third_party/dart/third_party/pkg/mime + node_preamble: + path: ./third_party/pkg/node_preamble + package_config: + path: ./third_party/dart/third_party/pkg/package_config path: path: ./third_party/dart/third_party/pkg/path platform: path: ./third_party/pkg/platform + pool: + path: ./third_party/dart/third_party/pkg/pool process: path: ./third_party/pkg/process - process_fakes: - path: ./tools/pkg/process_fakes process_runner: path: ./third_party/pkg/process_runner + protobuf: + path: ./third_party/dart/third_party/pkg/protobuf/protobuf + pub_semver: + path: ./third_party/dart/third_party/pkg/pub_semver + shelf: + path: ./third_party/dart/third_party/pkg/shelf/pkgs/shelf + shelf_packages_handler: + path: ./third_party/dart/third_party/pkg/shelf/pkgs/shelf_packages_handler + shelf_static: + path: ./third_party/dart/third_party/pkg/shelf/pkgs/shelf_static + shelf_web_socket: + path: ./third_party/dart/third_party/pkg/shelf/pkgs/shelf_web_socket smith: path: ./third_party/dart/pkg/smith + source_map_stack_trace: + path: ./third_party/dart/third_party/pkg/source_map_stack_trace + source_maps: + path: ./third_party/dart/third_party/pkg/source_maps source_span: path: ./third_party/dart/third_party/pkg/source_span + stack_trace: + path: ./third_party/dart/third_party/pkg/stack_trace + stream_channel: + path: ./third_party/dart/third_party/pkg/stream_channel string_scanner: path: ./third_party/dart/third_party/pkg/string_scanner term_glyph: path: ./third_party/dart/third_party/pkg/term_glyph + test: + path: ./third_party/dart/third_party/pkg/test/pkgs/test + test_api: + path: ./third_party/dart/third_party/pkg/test/pkgs/test_api + test_core: + path: ./third_party/dart/third_party/pkg/test/pkgs/test_core + typed_data: + path: ./third_party/dart/third_party/pkg/typed_data + vector_math: + path: ./third_party/pkg/vector_math + vm_service: + path: ./third_party/dart/pkg/vm_service + vm_service_protos: + path: ./third_party/dart/pkg/vm_service_protos + watcher: + path: ./third_party/dart/third_party/pkg/watcher + web: + path: ./third_party/dart/third_party/pkg/web + web_socket: + path: ./third_party/dart/third_party/pkg/http/pkgs/web_socket + web_socket_channel: + path: ./third_party/dart/third_party/pkg/web_socket_channel + webkit_inspection_protocol: + path: ./third_party/dart/third_party/pkg/webkit_inspection_protocol yaml: path: ./third_party/dart/third_party/pkg/yaml diff --git a/engine/src/flutter/sky/packages/sky_engine/lib/_embedder.yaml b/engine/src/flutter/sky/packages/sky_engine/lib/_embedder.yaml index 1dfb89d722..c1ac498099 100644 --- a/engine/src/flutter/sky/packages/sky_engine/lib/_embedder.yaml +++ b/engine/src/flutter/sky/packages/sky_engine/lib/_embedder.yaml @@ -30,4 +30,4 @@ embedded_libs: "dart:_js_annotations": "../../../../third_party/dart/sdk/lib/js/_js_annotations.dart" # The _js_types library is also needed for the same reasons as _internal. "dart:_js_types": "../../../../third_party/dart/sdk/lib/_internal/js_shared/lib/js_types.dart" - "dart:nativewrappers": "_empty.dart" + "dart:nativewrappers": "../../../../third_party/dart/sdk/lib/html/dartium/nativewrappers.dart" diff --git a/engine/src/flutter/testing/benchmark/pubspec.yaml b/engine/src/flutter/testing/benchmark/pubspec.yaml index c606fc28c2..e32a3edd3c 100644 --- a/engine/src/flutter/testing/benchmark/pubspec.yaml +++ b/engine/src/flutter/testing/benchmark/pubspec.yaml @@ -4,17 +4,13 @@ name: flutter_engine_benchmark publish_to: none + +# Required for workspace support. environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.5.0-294.0.dev -# Do not add any dependencies that require more than what is provided in -# //third_party/pkg, //third_party/dart/pkg, or -# //third_party/dart/third_party/pkg. In particular, package:test is not usable -# here. - -# If you do add packages here, make sure you can run `pub get --offline`, and -# check the .packages and .package_config to make sure all the paths are -# relative to this directory into //third_party/dart +# This package is managed as part of the engine workspace. +resolution: workspace dependencies: args: any @@ -23,55 +19,3 @@ dependencies: dev_dependencies: litetest: any - -dependency_overrides: - _discoveryapis_commons: - path: ../../third_party/pkg/googleapis/discoveryapis_commons - args: - path: ../../third_party/dart/third_party/pkg/args - async_helper: - path: ../../third_party/dart/pkg/async_helper - async: - path: ../../third_party/dart/third_party/pkg/async - collection: - path: ../../third_party/dart/third_party/pkg/collection - convert: - path: ../../third_party/dart/third_party/pkg/convert - crypto : - path: ../../third_party/dart/third_party/pkg/crypto - equatable: - path: ../../third_party/pkg/equatable - expect: - path: ../../third_party/dart/pkg/expect - gcloud: - path: ../../third_party/pkg/gcloud - googleapis: - path: ../../third_party/pkg/googleapis/generated/googleapis - googleapis_auth: - path: ../../third_party/pkg/googleapis/googleapis_auth - http: - path: ../../third_party/dart/third_party/pkg/http/pkgs/http - http_parser: - path: ../../third_party/dart/third_party/pkg/http_parser - js: - path: ../../third_party/dart/pkg/js - litetest: - path: ../litetest - meta: - path: ../../third_party/dart/pkg/meta - metrics_center: - path: ../../third_party/pkg/flutter_packages/packages/metrics_center - path: - path: ../../third_party/dart/third_party/pkg/path - smith: - path: ../../third_party/dart/pkg/smith - source_span: - path: ../../third_party/dart/third_party/pkg/source_span - string_scanner: - path: ../../third_party/dart/third_party/pkg/string_scanner - term_glyph: - path: ../../third_party/dart/third_party/pkg/term_glyph - typed_data: - path: ../../third_party/dart/third_party/pkg/typed_data - web: - path: ../../third_party/dart/third_party/pkg/web diff --git a/engine/src/flutter/testing/dart/BUILD.gn b/engine/src/flutter/testing/dart/BUILD.gn index f67dad80f0..8d658f2d28 100644 --- a/engine/src/flutter/testing/dart/BUILD.gn +++ b/engine/src/flutter/testing/dart/BUILD.gn @@ -65,7 +65,6 @@ foreach(test, tests) { "-DkFlutterBuildDirectory=$flutter_build_dir", "-DkSkiaGoldWorkDirectory=$skia_gold_work_dir", ] - package_config = ".dart_tool/package_config.json" deps = [ "//flutter/third_party/txt:txt_fixtures" ] testonly = true } diff --git a/engine/src/flutter/testing/dart/observatory/BUILD.gn b/engine/src/flutter/testing/dart/observatory/BUILD.gn index 35c573a85a..780b3f7d36 100644 --- a/engine/src/flutter/testing/dart/observatory/BUILD.gn +++ b/engine/src/flutter/testing/dart/observatory/BUILD.gn @@ -15,7 +15,6 @@ foreach(test, tests) { flutter_frontend_server("compile_$test") { main_dart = test kernel_output = "$root_gen_dir/$test.dill" - package_config = "../.dart_tool/package_config.json" } } diff --git a/engine/src/flutter/testing/dart/pubspec.yaml b/engine/src/flutter/testing/dart/pubspec.yaml index d1698bad23..ca3de69661 100644 --- a/engine/src/flutter/testing/dart/pubspec.yaml +++ b/engine/src/flutter/testing/dart/pubspec.yaml @@ -5,16 +5,12 @@ name: engine_tests publish_to: none -# Do not add any dependencies that require more than what is provided in -# //third_party/dart/pkg or //third_party/dart/third_party/pkg. -# In particular, package:test is not usable here. - -# If you do add packages here, make sure you can run `pub get --offline`, and -# check the .packages and .package_config to make sure all the paths are -# relative to this directory into //third_party/dart - +# Required for workspace support. environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.5.0-294.0.dev + +# This package is managed as part of the engine workspace. +resolution: workspace dependencies: ffi: any @@ -25,47 +21,3 @@ dependencies: vector_math: any vm_service: any vm_service_protos: any - -dependency_overrides: - async_helper: - path: ../../third_party/dart/pkg/async_helper - collection: - path: ../../third_party/dart/third_party/pkg/collection - crypto: - path: ../../third_party/dart/third_party/pkg/crypto - engine_repo_tools: - path: ../../tools/pkg/engine_repo_tools - expect: - path: ../../third_party/dart/pkg/expect - file: - path: ../../third_party/dart/third_party/pkg/file/packages/file - ffi: - path: ../../third_party/dart/third_party/pkg/native/pkgs/ffi - fixnum: - path: ../../third_party/dart/third_party/pkg/fixnum - litetest: - path: ../litetest - meta: - path: ../../third_party/dart/pkg/meta - path: - path: ../../third_party/dart/third_party/pkg/path - platform: - path: ../../third_party/pkg/platform - process: - path: ../../third_party/pkg/process - protobuf: - path: ../../third_party/dart/third_party/pkg/protobuf/protobuf - smith: - path: ../../third_party/dart/pkg/smith - skia_gold_client: - path: ../skia_gold_client - sky_engine: - path: ../../sky/packages/sky_engine - typed_data: - path: ../../third_party/dart/third_party/pkg/typed_data - vector_math: - path: ../../third_party/pkg/vector_math - vm_service: - path: ../../third_party/dart/pkg/vm_service - vm_service_protos: - path: ../../third_party/dart/pkg/vm_service_protos diff --git a/engine/src/flutter/testing/pkg_test_demo/pubspec.yaml b/engine/src/flutter/testing/pkg_test_demo/pubspec.yaml index d425d34be7..22bb07bd48 100644 --- a/engine/src/flutter/testing/pkg_test_demo/pubspec.yaml +++ b/engine/src/flutter/testing/pkg_test_demo/pubspec.yaml @@ -5,115 +5,12 @@ name: pkg_test_demo publish_to: none -# Do not add any dependencies that require more than what is provided in -# //third_party/dart/pkg or //third_party/dart/third_party/pkg. - -# If you do add packages here, make sure you can run `pub get --offline`, and -# check the .packages and .package_config to make sure all the paths are -# relative to this directory into //third_party/dart - +# Required for workspace support. environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.5.0-294.0.dev + +# This package is managed as part of the engine workspace. +resolution: workspace dev_dependencies: - test: - -dependency_overrides: - _fe_analyzer_shared: - path: ../../third_party/dart/pkg/_fe_analyzer_shared - _macros: - path: ../../third_party/dart/pkg/_macros - analyzer: - path: ../../third_party/dart/pkg/analyzer - args: - path: ../../third_party/dart/third_party/pkg/args - async: - path: ../../third_party/dart/third_party/pkg/async - boolean_selector: - path: ../../third_party/dart/third_party/pkg/boolean_selector - collection: - path: ../../third_party/dart/third_party/pkg/collection - convert: - path: ../../third_party/dart/third_party/pkg/convert - coverage: - path: ../../third_party/pkg/coverage - crypto: - path: ../../third_party/dart/third_party/pkg/crypto - file: - path: ../../third_party/dart/third_party/pkg/file/packages/file - frontend_server_client: - path: ../../third_party/dart/third_party/pkg/webdev/frontend_server_client - glob: - path: ../../third_party/dart/third_party/pkg/glob - http_multi_server: - path: ../../third_party/dart/third_party/pkg/http_multi_server - http_parser: - path: ../../third_party/dart/third_party/pkg/http_parser - io: - path: ../../third_party/pkg/io - js: - path: ../../third_party/dart/pkg/js - logging: - path: ../../third_party/dart/third_party/pkg/logging - macros: - path: ../../third_party/dart/pkg/macros - matcher: - path: ../../third_party/dart/third_party/pkg/matcher - meta: - path: ../../third_party/dart/pkg/meta - mime: - path: ../../third_party/dart/third_party/pkg/mime - node_preamble: - path: ../../third_party/pkg/node_preamble - package_config: - path: ../../third_party/dart/third_party/pkg/package_config - path: - path: ../../third_party/dart/third_party/pkg/path - pool: - path: ../../third_party/dart/third_party/pkg/pool - pub_semver: - path: ../../third_party/dart/third_party/pkg/pub_semver - shelf: - path: ../../third_party/dart/third_party/pkg/shelf/pkgs/shelf - shelf_packages_handler: - path: ../../third_party/dart/third_party/pkg/shelf/pkgs/shelf_packages_handler - shelf_static: - path: ../../third_party/dart/third_party/pkg/shelf/pkgs/shelf_static - shelf_web_socket: - path: ../../third_party/dart/third_party/pkg/shelf/pkgs/shelf_web_socket - source_map_stack_trace: - path: ../../third_party/dart/third_party/pkg/source_map_stack_trace - source_maps: - path: ../../third_party/dart/third_party/pkg/source_maps - source_span: - path: ../../third_party/dart/third_party/pkg/source_span - stack_trace: - path: ../../third_party/dart/third_party/pkg/stack_trace - stream_channel: - path: ../../third_party/dart/third_party/pkg/stream_channel - string_scanner: - path: ../../third_party/dart/third_party/pkg/string_scanner - term_glyph: - path: ../../third_party/dart/third_party/pkg/term_glyph - test: - path: ../../third_party/dart/third_party/pkg/test/pkgs/test - test_api: - path: ../../third_party/dart/third_party/pkg/test/pkgs/test_api - test_core: - path: ../../third_party/dart/third_party/pkg/test/pkgs/test_core - typed_data: - path: ../../third_party/dart/third_party/pkg/typed_data - vm_service: - path: ../../third_party/dart/pkg/vm_service - watcher: - path: ../../third_party/dart/third_party/pkg/watcher - web: - path: ../../third_party/dart/third_party/pkg/web - web_socket: - path: ../../third_party/dart/third_party/pkg/http/pkgs/web_socket - web_socket_channel: - path: ../../third_party/dart/third_party/pkg/web_socket_channel - webkit_inspection_protocol: - path: ../../third_party/dart/third_party/pkg/webkit_inspection_protocol - yaml: - path: ../../third_party/dart/third_party/pkg/yaml + test: any diff --git a/engine/src/flutter/testing/scenario_app/BUILD.gn b/engine/src/flutter/testing/scenario_app/BUILD.gn index eb47cc18e8..1f5c39791c 100644 --- a/engine/src/flutter/testing/scenario_app/BUILD.gn +++ b/engine/src/flutter/testing/scenario_app/BUILD.gn @@ -7,7 +7,6 @@ import("//flutter/testing/rules/runtime_mode.gni") flutter_snapshot("scenario_app_snapshot") { main_dart = "lib/main.dart" - package_config = ".dart_tool/package_config.json" } if (!is_aot) { diff --git a/engine/src/flutter/testing/scenario_app/pubspec.yaml b/engine/src/flutter/testing/scenario_app/pubspec.yaml index 0b8e4fef24..773a68cd89 100644 --- a/engine/src/flutter/testing/scenario_app/pubspec.yaml +++ b/engine/src/flutter/testing/scenario_app/pubspec.yaml @@ -4,16 +4,14 @@ name: scenario_app publish_to: none + +# Required for workspace support. environment: - sdk: ^3.3.0 + sdk: ^3.5.0-294.0.dev -# Do not add any dependencies that require more than what is provided in -# //third_party/dart/pkg, //third_party/dart/third_party/pkg, or -# //third_party/pkg. In particular, package:test is not usable here. +# This package is managed as part of the engine workspace. +resolution: workspace -# If you do add packages here, make sure you can run `pub get --offline`, and -# check the .packages and .package_config to make sure all the paths are -# relative to this directory into //third_party/dart, or //third_party/pkg dependencies: args: any dir_contents_diff: any @@ -21,47 +19,14 @@ dependencies: meta: any path: any process: any - sky_engine: any vector_math: any skia_gold_client: any + sky_engine: any dev_dependencies: litetest: any +# TODO(matanlurey): Figure out how sky_engine fits into the pub workspace model. dependency_overrides: - args: - path: ../../third_party/dart/third_party/pkg/args - async_helper: - path: ../../third_party/dart/pkg/async_helper - collection: - path: ../../third_party/dart/third_party/pkg/collection - crypto: - path: ../../third_party/dart/third_party/pkg/crypto - dir_contents_diff: - path: ../../tools/dir_contents_diff - engine_repo_tools: - path: ../../tools/pkg/engine_repo_tools - expect: - path: ../../third_party/dart/pkg/expect - file: - path: ../../third_party/dart/third_party/pkg/file/packages/file - litetest: - path: ../litetest - meta: - path: ../../third_party/dart/pkg/meta - path: - path: ../../third_party/dart/third_party/pkg/path - platform: - path: ../../third_party/pkg/platform - process: - path: ../../third_party/pkg/process - skia_gold_client: - path: ../../testing/skia_gold_client - smith: - path: ../../third_party/dart/pkg/smith sky_engine: path: ../../sky/packages/sky_engine - typed_data: - path: ../../third_party/dart/third_party/pkg/typed_data - 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 a314e4f8f8..b9804a7302 100644 --- a/engine/src/flutter/testing/skia_gold_client/pubspec.yaml +++ b/engine/src/flutter/testing/skia_gold_client/pubspec.yaml @@ -4,63 +4,23 @@ name: skia_gold_client publish_to: none + +# Required for workspace support. environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.5.0-294.0.dev -# Do not add any dependencies that require more than what is provided in -# //third_party/dart/pkg, //third_party/dart/third_party/pkg, or -# //third_party/pkg. In particular, package:test is not usable here. +# This package is managed as part of the engine workspace. +resolution: workspace -# If you do add packages here, make sure you can run `pub get --offline`, and -# check the .packages and .package_config to make sure all the paths are -# relative to this directory into //third_party/dart, or //third_party/pkg dependencies: + args: any crypto: any + engine_repo_tools: any + git_repo_tools: any meta: any path: any - engine_repo_tools: any process: any dev_dependencies: - args: any - git_repo_tools: any litetest: any process_fakes: any - -dependency_overrides: - args: - path: ../../third_party/dart/third_party/pkg/args - async: - path: ../../third_party/dart/third_party/pkg/async - async_helper: - path: ../../third_party/dart/pkg/async_helper - collection: - path: ../../third_party/dart/third_party/pkg/collection - crypto: - path: ../../third_party/dart/third_party/pkg/crypto - engine_repo_tools: - path: ../../tools/pkg/engine_repo_tools - expect: - path: ../../third_party/dart/pkg/expect - file: - path: ../../third_party/dart/third_party/pkg/file/packages/file - git_repo_tools: - path: ../../tools/pkg/git_repo_tools - litetest: - path: ../../testing/litetest - meta: - path: ../../third_party/dart/pkg/meta - path: - path: ../../third_party/dart/third_party/pkg/path - platform: - path: ../../third_party/pkg/platform - process: - path: ../../third_party/pkg/process - process_fakes: - path: ../../tools/pkg/process_fakes - process_runner: - path: ../../third_party/pkg/process_runner - smith: - path: ../../third_party/dart/pkg/smith - typed_data: - path: ../../third_party/dart/third_party/pkg/typed_data diff --git a/engine/src/flutter/testing/symbols/pubspec.yaml b/engine/src/flutter/testing/symbols/pubspec.yaml index 6d3099cc21..cd7e2c196b 100644 --- a/engine/src/flutter/testing/symbols/pubspec.yaml +++ b/engine/src/flutter/testing/symbols/pubspec.yaml @@ -4,21 +4,13 @@ name: verify_exported publish_to: none + +# Required for workspace support. environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.5.0-294.0.dev -# Do not add any dependencies that require more than what is provided in -# //third_party/pkg, //third_party/dart/pkg, or -# //third_party/dart/third_party/pkg. In particular, package:test is not usable -# here. - -# If you do add packages here, make sure you can run `pub get --offline`, and -# check the .packages and .package_config to make sure all the paths are -# relative to this directory into //third_party/dart +# This package is managed as part of the engine workspace. +resolution: workspace dependencies: path: any - -dependency_overrides: - path: - path: ../../third_party/dart/third_party/pkg/path diff --git a/engine/src/flutter/tools/golden_tests_harvester/pubspec.yaml b/engine/src/flutter/tools/golden_tests_harvester/pubspec.yaml index 06073085d9..b72b06fe13 100644 --- a/engine/src/flutter/tools/golden_tests_harvester/pubspec.yaml +++ b/engine/src/flutter/tools/golden_tests_harvester/pubspec.yaml @@ -4,52 +4,19 @@ name: golden_tests_harvester publish_to: none + +# Required for workspace support. environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.5.0-294.0.dev -# Do not add any dependencies that require more than what is provided in -# //third_party/dart/pkg, //third_party/dart/third_party/pkg, or -# //third_party/pkg. In particular, package:test is not usable here. +# This package is managed as part of the engine workspace. +resolution: workspace -# If you do add packages here, make sure you can run `pub get --offline`, and -# check the .packages and .package_config to make sure all the paths are -# relative to this directory into //third_party/dart, or //third_party/pkg dependencies: args: any meta: any path: any - skia_gold_client: - path: ../../testing/skia_gold_client + skia_gold_client: any dev_dependencies: litetest: any - -dependency_overrides: - args: - path: ../../third_party/dart/third_party/pkg/args - async_helper: - path: ../../third_party/dart/pkg/async_helper - collection: - path: ../../third_party/dart/third_party/pkg/collection - crypto: - path: ../../third_party/dart/third_party/pkg/crypto - expect: - path: ../../third_party/dart/pkg/expect - file: - path: ../../third_party/dart/third_party/pkg/file/packages/file - litetest: - path: ../../testing/litetest - meta: - path: ../../third_party/dart/pkg/meta - engine_repo_tools: - path: ../../tools/pkg/engine_repo_tools - path: - path: ../../third_party/dart/third_party/pkg/path - platform: - path: ../../third_party/pkg/platform - process: - path: ../../third_party/pkg/process - smith: - path: ../../third_party/dart/pkg/smith - typed_data: - path: ../../third_party/dart/third_party/pkg/typed_data diff --git a/engine/src/flutter/tools/pkg/process_fakes/pubspec.yaml b/engine/src/flutter/tools/pkg/process_fakes/pubspec.yaml index 057d1f6081..f17791397b 100644 --- a/engine/src/flutter/tools/pkg/process_fakes/pubspec.yaml +++ b/engine/src/flutter/tools/pkg/process_fakes/pubspec.yaml @@ -4,17 +4,13 @@ name: process_fakes publish_to: none + +# Required for workspace support. environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.5.0-294.0.dev -# Do not add any dependencies that require more than what is provided in -# //third_party/pkg, //third_party/dart/pkg, or -# //third_party/dart/third_party/pkg. In particular, package:test is not usable -# here. - -# If you do add packages here, make sure you can run `pub get --offline`, and -# check the .packages and .package_config to make sure all the paths are -# relative to this directory into //third_party/dart +# This package is managed as part of the engine workspace. +resolution: workspace dependencies: file: any @@ -22,15 +18,3 @@ dependencies: path: any platform: any process: any - -dependency_overrides: - file: - path: ../../../third_party/dart/third_party/pkg/file/packages/file - meta: - path: ../../../third_party/dart/pkg/meta - path: - path: ../../../third_party/dart/third_party/pkg/path - platform: - path: ../../../third_party/pkg/platform - process: - path: ../../../third_party/pkg/process diff --git a/engine/src/flutter/web_sdk/web_test_utils/pubspec.yaml b/engine/src/flutter/web_sdk/web_test_utils/pubspec.yaml index 9a652e31ca..d6acf52416 100644 --- a/engine/src/flutter/web_sdk/web_test_utils/pubspec.yaml +++ b/engine/src/flutter/web_sdk/web_test_utils/pubspec.yaml @@ -20,3 +20,5 @@ dependencies: dependency_overrides: engine_repo_tools: path: ../../tools/pkg/engine_repo_tools + git_repo_tools: + path: ../../tools/pkg/git_repo_tools