-
Notifications
You must be signed in to change notification settings - Fork 0
Add workspace dependency resolution to pubspec files #6
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
Conversation
- Add `resolution: workspace` to `pubspec.yaml` - Add `resolution: workspace` to `flutter_example/pubspec.yaml` - Enable Dart/Flutter workspace functionality Branch: dev Base: main Related to: cross-repo workspace change affecting 63 repositories
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Adds Dart/pub workspace dependency resolution configuration to this repo’s Dart package and Flutter example app to support monorepo-local dependency resolution.
Changes:
- Added
resolution: workspaceto the rootpubspec.yamlfordynamic_library. - Added
resolution: workspacetoflutter_example/pubspec.yaml.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
pubspec.yaml |
Opts the dynamic_library package into workspace resolution. |
flutter_example/pubspec.yaml |
Opts the Flutter example app into workspace resolution. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| version: 1.0.0+1 | ||
|
|
||
| environment: | ||
| sdk: ">=2.16.2 <3.0.0" |
Copilot
AI
Feb 10, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flutter_example declares environment.sdk: ">=2.16.2 <3.0.0", but it depends on the parent dynamic_library package (via path: ..), whose pubspec requires Dart >=3.9.0 <4.0.0. As a result, flutter pub get for the example app cannot succeed with the current SDK constraint. Update the example app's SDK constraint to be compatible with dynamic_library (and with resolution: workspace, if that feature requires a newer pub/Dart version).
| sdk: ">=2.16.2 <3.0.0" | |
| sdk: ">=3.9.0 <4.0.0" |
- Remove `resolution: workspace` from `pubspec.yaml` - Remove `resolution: workspace` from `flutter_example/pubspec.yaml` Branch: dev Base: main Related to: cross-repo workspace change affecting 62 repositories
|
smart-prs is closing this PR automatically. Reason: 0 file changes between |
Enhance cross-repo git workflows and AI integration
Branched from: main
Branch:
devPR into: main
Summary
This PR introduces workspace dependency resolution for the
dynamic_librarypackage and itsflutter_exampleapplication. This change simplifies dependency management within the monorepo, enabling packages to resolve local dependencies more effectively.Changes
resolution: workspaceto thepubspec.yamlfile of thedynamic_librarypackage.resolution: workspaceto thepubspec.yamlfile within theflutter_exampleapplication.Related PRs
This PR is part of a cross-repo change. All related PRs are listed above.