mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
![]() Currently the bot that runs `flutter update-packages` makes PRs that fail due to native asset integration tests failing. The root cause is due to incompatible versions on `package:logging`. The bot tries to upgrade `package:logging` from `1.2.0` to `1.3.0`. Here's what seems to happen: * `flutter update-packages` will update `dev/integration_tests/link_hook/pubspec.yaml` with `package:logging` to `1.3.0` (as it does with all other `pubspec.yaml` files in the flutter repository) * `flutter create --template=package_ffi` will generate a template with `package:logging` `^1.2.0` * The test in question * creates ffi template (which will use `^1.2.0`) * make it depend on `dev/integration_tests/link_hook` (which uses `=1.3.0`) * changes logging dependency from the template from `^1.2.0` to `=1.2.0` IMHO * `flutter update-packages` is doing what it's supposed to * `flutter create --template=package_ffi` can generate templates with versions it determines (maybe there are use cases where we want to generate templates with older versions) * The problematic part is the test: * it makes the generated template depend on `link_hook` and * changes template generated pubspec to use pinned dependencies This PR makes the test package (created via template) use the pinned package versions from `dev/integration_tests/link_hook` (for dependencies that are common among the two). All other dependencies that the template has on top of `dev/integration_tests/link_hook` it can pin as it does currently. This will give us deterministic CI behavior (as we use flutter pined packages and remaining deps being pinned via template) It avoids changing the `flutter update-packages` and `flutter create --template=package_ffi` (as their behavior seems reasonable) Should fix https://github.com/flutter/flutter/issues/158135 |
||
---|---|---|
.. | ||
native_assets_agp_version_test.dart | ||
native_assets_test_utils.dart | ||
native_assets_test.dart | ||
native_assets_without_cbuild_assemble_test.dart |