Add pubspecs to Dart tests and scripts executed by checked in SDK

Without their own pubspecs, they belong to `_` project from the root
`pubspec.yaml`. As a result, once we bump the SDK version, these
scripts cannot be executed with the checked in sdk.

Note: when we bump the SDK version we also must bump the version in
the root pubspec, otherwise unreleased language experiments break.
Change-Id: Ie2ec35865a5966d6801de832a4b6ad312a24d277
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/436901
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Ivan Inozemtsev <iinozemtsev@google.com>
This commit is contained in:
Ivan Inozemtsev
2025-06-25 08:00:10 -07:00
committed by Commit Queue
parent ee69f45a1f
commit 0aa01cf395
5 changed files with 29 additions and 0 deletions
+3
View File
@@ -76,9 +76,11 @@ workspace:
- pkg/vm_service_protos
- pkg/vm_snapshot_analysis
- pkg/wasm_builder
- runtime/tests/vm/dart
- runtime/tools/profiling
- samples/ffi/http
- samples/ffi/httpIG
- tests/ffi
# dap and language_server_protocol are checked in to and
# developed in the SDK repo, though they are located in `third_party/`.
- third_party/pkg/dap
@@ -86,6 +88,7 @@ workspace:
- tools/package_deps
- tools/verify_docs
- tools
- utils
# All third_party packages are retrieved via the DEPS-file and overridden here.
dependency_overrides:
+8
View File
@@ -0,0 +1,8 @@
name: runtime_tests_vm_dart
description: VM Dart tests
environment:
sdk: ^3.8.0
resolution: workspace
publish_to: none
+8
View File
@@ -0,0 +1,8 @@
name: tests_ffi
description: FFI tests
environment:
sdk: ^3.8.0
resolution: workspace
publish_to: none
+2
View File
@@ -82,9 +82,11 @@ $overrides
rootUri.startsWith('../pkg/') || // SDK package
rootUri.startsWith('../samples/') || // sample package
rootUri.startsWith('../runtime/') || // VM package
rootUri.startsWith('../tests/ffi') || // FFI tests
rootUri.startsWith(
'../tools',
) || // A tool package for developing the SDK.
rootUri.startsWith('../utils' ) || // Utils for building the SDK.
rootUri == '../' // The main workspace package
)) {
print('Package ${package['name']} is imported from outside the SDK.');
+8
View File
@@ -0,0 +1,8 @@
name: utils
description: Internal utils for building Dart SDK.
environment:
sdk: ^3.8.0
resolution: workspace
publish_to: none