[flutter_plugin_tools] Fix subpackage analysis#5027
[flutter_plugin_tools] Fix subpackage analysis#5027fluttergithubbot merged 2 commits intoflutter:mainfrom
Conversation
Fixes a regression in `analyze` when packages have non-example subpackages. Restructuring in 0.8.0 accidentally caused them not to have their dependencies fetched, causing analysis failures. Unblocks rolling flutter/packages to the latest tooling.
|
I was thinking analysis was a run-on-packages-and-subpackages iteration when I made the previous change; I forgot that it's actually iterating over just the top-level packages, but that |
|
|
Doh |
|
Should be fixed now; I added logic to skip packages that aren't in the packages directory when finding changed packages to rewrite. |
|
Ah, good point, I didn't remember that |
| .pubspecFile | ||
| .existsSync()) { | ||
| final int exitCode = await processRunner.runAndStream( | ||
| flutterCommand, <String>['packages', 'get'], |
There was a problem hiding this comment.
This is extremely nitpicky, I'm sure I've not noticed it in dozens of other PRs!, but flutter packages is an undocumented alias (kept for backwards compatibility, IIRC) of: flutter pub 🤓
$ flutter --help | grep packages
pub Commands for managing Flutter packages.
(It doesn't show up even in -v mode of help!, but there's a --packages that has a different purpose.)
There was a problem hiding this comment.
(flutter packages get will probably work forever, but I'm flagging it just in case 😛)
There was a problem hiding this comment.
TIL! I'll do a PR to fix that shortly.
Fixes a regression in
analyzewhen packages have non-examplesubpackages. Restructuring in 0.8.0 accidentally caused them not to have
their dependencies fetched, causing analysis failures.
Unblocks rolling flutter/packages to the latest tooling.
Pre-launch Checklist
dart format.)[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style.///).