diff --git a/pubspec.yaml b/pubspec.yaml index 4bf1be8ed02..a506bae1575 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -76,6 +76,7 @@ workspace: - pkg/vm_service_protos - pkg/vm_snapshot_analysis - pkg/wasm_builder + - samples/ffi/http # 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 diff --git a/samples/ffi/http/pubspec.yaml b/samples/ffi/http/pubspec.yaml index 1e4f6a3de14..22ef1daed8f 100644 --- a/samples/ffi/http/pubspec.yaml +++ b/samples/ffi/http/pubspec.yaml @@ -2,8 +2,10 @@ name: http_sample version: 0.0.1 publish_to: none +resolution: workspace + environment: - sdk: '>=3.1.0 <4.0.0' + sdk: ^3.5.0 dependencies: ffi: ^2.1.0 diff --git a/tools/generate_package_config.dart b/tools/generate_package_config.dart index 847311f3839..9dbe707fbe0 100644 --- a/tools/generate_package_config.dart +++ b/tools/generate_package_config.dart @@ -78,6 +78,7 @@ $overrides final rootUri = package['rootUri']; if (!(rootUri.startsWith('../third_party/') || // Third-party package rootUri.startsWith('../pkg/') || // SDK package + rootUri.startsWith('../samples/') || // sample package rootUri.startsWith('../runtime/') || // VM package rootUri.startsWith( '../tools',