File tree 2 files changed +16
-4
lines changed
2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 1
1
## 0.6.9-wip
2
2
3
+ - Add support for native assets for ` dart test ` in pub workspaces.
4
+
3
5
## 0.6.8
4
6
5
7
* Fix hang when running multiple precompiled browser tests.
Original file line number Diff line number Diff line change @@ -151,12 +151,22 @@ class _TestCompilerForLanguageVersion {
151
151
p.relative (p.dirname (p.dirname (Platform .resolvedExecutable)));
152
152
final packageConfigUriAwaited = await packageConfigUri;
153
153
154
- // If we have native assets for the host os in JIT mode, they are here.
154
+ // If we have native assets for the host os in JIT mode, they are either
155
+ // in the `.dart_tool/` in the root package or in the pub workspace.
155
156
Uri ? nativeAssetsYaml;
156
157
if (enabledExperiments.contains ('native-assets' )) {
157
- nativeAssetsYaml = packageConfigUriAwaited.resolve ('native_assets.yaml' );
158
- if (! await File .fromUri (nativeAssetsYaml).exists ()) {
159
- nativeAssetsYaml = null ;
158
+ final nativeAssetsYamlRootPackage =
159
+ Directory .current.uri.resolve ('.dart_tool/native_assets.yaml' );
160
+ final nativeAssetsYamlWorkspace =
161
+ packageConfigUriAwaited.resolve ('native_assets.yaml' );
162
+ for (final potentialNativeAssetsUri in [
163
+ nativeAssetsYamlRootPackage,
164
+ nativeAssetsYamlWorkspace
165
+ ]) {
166
+ if (await File .fromUri (potentialNativeAssetsUri).exists ()) {
167
+ nativeAssetsYaml = potentialNativeAssetsUri;
168
+ break ;
169
+ }
160
170
}
161
171
}
162
172
You can’t perform that action at this time.
0 commit comments