Context:
Currently, package:test checks for a native_assets.yaml next to the package_config.json when compiling the tests to a kernel file to embed the native assets yaml into the kernel file.
With pub workspaces, the package_config.json is no longer in the root package, rather in some parent directory.
The native_assets.yaml is in the .dart_tool/ directory of the root package.
I see two options:
- Add a command-line argument that takes the path to the
native_assets.yaml to bin/test.dart.
- Add a command-line argument that takes the path to the package root to
bin/test.dart. (This might be useful for other things possibly?)
Any opinions @natebosch @jakemac53?
Context:
dart testwith pub workspaces sdk#60489Currently,
package:testchecks for anative_assets.yamlnext to thepackage_config.jsonwhen compiling the tests to a kernel file to embed the native assets yaml into the kernel file.With pub workspaces, the
package_config.jsonis no longer in the root package, rather in some parent directory.The
native_assets.yamlis in the.dart_tool/directory of the root package.I see two options:
native_assets.yamltobin/test.dart.bin/test.dart. (This might be useful for other things possibly?)Any opinions @natebosch @jakemac53?