Unverified Commit 721927ef authored by liyuqian's avatar liyuqian Committed by GitHub

Use pub inside the Flutter directory (#57704)

parent c6f77923
...@@ -437,6 +437,9 @@ Future<String> evalFlutter(String command, { ...@@ -437,6 +437,9 @@ Future<String> evalFlutter(String command, {
String get dartBin => String get dartBin =>
path.join(flutterDirectory.path, 'bin', 'cache', 'dart-sdk', 'bin', 'dart'); path.join(flutterDirectory.path, 'bin', 'cache', 'dart-sdk', 'bin', 'dart');
String get pubBin =>
path.join(flutterDirectory.path, 'bin', 'cache', 'dart-sdk', 'bin', 'pub');
Future<int> dart(List<String> args) => exec(dartBin, args); Future<int> dart(List<String> args) => exec(dartBin, args);
/// Returns a future that completes with a path suitable for JAVA_HOME /// Returns a future that completes with a path suitable for JAVA_HOME
......
...@@ -780,14 +780,14 @@ class DevToolsMemoryTest { ...@@ -780,14 +780,14 @@ class DevToolsMemoryTest {
} }
Future<void> _launchDevTools() async { Future<void> _launchDevTools() async {
await exec('pub', <String>[ await exec(pubBin, <String>[
'global', 'global',
'activate', 'activate',
'devtools', 'devtools',
'0.2.5', '0.2.5',
]); ]);
_devToolsProcess = await startProcess( _devToolsProcess = await startProcess(
'pub', pubBin,
<String>[ <String>[
'global', 'global',
'run', 'run',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment