mirror of
https://github.com/flutter/packages.git
synced 2025-06-27 04:37:07 +08:00
[flutter_plugin_tools] ignore flutter_plugin_tools when publishing (#4110)
This commit is contained in:
@ -290,6 +290,14 @@ Safe to ignore if the package is deleted in this commit.
|
||||
}
|
||||
|
||||
final Pubspec pubspec = Pubspec.parse(pubspecFile.readAsStringSync());
|
||||
|
||||
if (pubspec.name == 'flutter_plugin_tools') {
|
||||
// Ignore flutter_plugin_tools package when running publishing through flutter_plugin_tools.
|
||||
// TODO(cyanglaz): Make the tool also auto publish flutter_plugin_tools package.
|
||||
// https://github.com/flutter/flutter/issues/85430
|
||||
return _CheckNeedsReleaseResult.noRelease;
|
||||
}
|
||||
|
||||
if (pubspec.publishTo == 'none') {
|
||||
return _CheckNeedsReleaseResult.noRelease;
|
||||
}
|
||||
|
Reference in New Issue
Block a user