mirror of
https://github.com/flutter/packages.git
synced 2025-08-06 17:28:42 +08:00
[flutter_plugin_tools] Add a new 'make-deps-path-based' command (#4575)
Adds a new command that adds `dependency_overrides` to any packages in the repository that depend on a list of target packages, including an option to target packages that will publish a non-breaking change in a given diff. Adds a new CI step that uses the above in conjunction with a new `--run-on-dirty-packages` to adjust the dependencies of anything in the repository that uses a to-be-published package and then re-run analysis on just those packages. This will allow us to catch in presubmit any changes that are not breaking from a semver standpoint, but will break us due to our strict analysis in CI. Fixes https://github.com/flutter/flutter/issues/89862
This commit is contained in:
@ -123,13 +123,12 @@ class PublishCheckCommand extends PackageLoopingCommand {
|
||||
}
|
||||
|
||||
Pubspec? _tryParsePubspec(RepositoryPackage package) {
|
||||
final File pubspecFile = package.pubspecFile;
|
||||
|
||||
try {
|
||||
return Pubspec.parse(pubspecFile.readAsStringSync());
|
||||
return package.parsePubspec();
|
||||
} on Exception catch (exception) {
|
||||
print(
|
||||
'Failed to parse `pubspec.yaml` at ${pubspecFile.path}: $exception}',
|
||||
'Failed to parse `pubspec.yaml` at ${package.pubspecFile.path}: '
|
||||
'$exception',
|
||||
);
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user