-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[infra] Convert this mono_repo to use pub workspaces #1223
Comments
We might also need the
@sigurdm What about projects that have |
If you have |
|
@dcharkes Would you like a PR for this? |
Yes please. It should work now that flutter is supporting pub workspaces as well. Please note that we have a lot of test data which are projects as well, and some of those are explicitly pinned to older versions of dependencies. For example pkgs/native_assets_builder/test/build_runner/version_skew_test.dart. I'm not entirely sure how that fits into pub workspaces. Please let me know if that causes trouble. |
As long as they are not added to the workspace explicitly, they should not cause trouble. |
Opened #1884, ready for review! |
From Dart 3.5 on,
pub
supports single resolution for related packages.This would be very useful for:
native_assets_cli
native_assets_builder
native_toolchain_c
We can get rid of all the path dependencies / overrides.
Also, having a single resolution ensures that
package:jni
for example doesn't have any dependency conflicts withpackage:native_assets_cli
.It might be a slight over-specification to have all packages in this repo as a single resolution, and it would mean bumping major versions needs to be done in PRs that touch all packages. But that might be a small price to pay.
We have to wait until Dart 3.5 reaches stable, the SDK constraint for the packages must be at least 3.5, and we don't want to push the packages to only work on beta/dev.
Thanks for the great work @sigurdm! ❤️
FYI @HosseinYousefi @liamappelbe @mosuem
The text was updated successfully, but these errors were encountered: