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.
This commit is contained in:
Matan Lurey
2024-07-26 10:35:50 -07:00
committed by GitHub
parent 77ce4804b7
commit e301288885
16 changed files with 201 additions and 405 deletions

View File

@@ -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) {

View File

@@ -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

View File

@@ -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:
# <https://github.com/dart-lang/sdk/blob/main/DEPS>.
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

View File

@@ -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"

View File

@@ -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

View File

@@ -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
}

View File

@@ -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"
}
}

View File

@@ -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

View File

@@ -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

View File

@@ -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) {

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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