mirror of
https://github.com/flutter/packages.git
synced 2025-06-27 21:28:33 +08:00
[flutter_plugin_tools] Fix federated safety check (#4368)
The new safety check doesn't allow simple platform-interface-only changes because it doesn't actually check that a non-interface package is actually modified before failing it for a modified platform interface. This fixes that, and adds a test case covering it.
This commit is contained in:
@ -135,6 +135,13 @@ class FederationSafetyCheckCommand extends PackageLoopingCommand {
|
||||
return PackageResult.success();
|
||||
}
|
||||
|
||||
final List<String> changedPackageFiles =
|
||||
_changedDartFiles[package.directory.basename] ?? <String>[];
|
||||
if (changedPackageFiles.isEmpty) {
|
||||
print('No Dart changes.');
|
||||
return PackageResult.success();
|
||||
}
|
||||
|
||||
// If the change would be flagged, but it appears to be a mass change
|
||||
// rather than a plugin-specific change, allow it with a warning.
|
||||
//
|
||||
|
Reference in New Issue
Block a user