diff --git a/tools/commands/analyze_plugins.py b/tools/commands/analyze_plugins.py index 6b65569d9..c8a9062d5 100644 --- a/tools/commands/analyze_plugins.py +++ b/tools/commands/analyze_plugins.py @@ -13,8 +13,7 @@ def parse_args(args): def _run_analyze_plugins(plugin_dir): - subprocess.run('flutter pub get', shell=True, cwd=plugin_dir) - completed_process = subprocess.run('flutter analyze', shell=True, cwd=plugin_dir) + completed_process = subprocess.run('flutter analyze --pub', shell=True, cwd=plugin_dir) if completed_process.returncode == 0: return True else: