Remove --disable-dart-dev across flutter/flutter. (#154280)
As per the Dart CLI team and @bkonyi, this is no longer providing value and we shouldn't cargo-cult it. Work towards https://github.com/flutter/flutter/issues/154268.
This commit is contained in:
@@ -132,7 +132,7 @@ function generate_docs() {
|
||||
|
||||
# Make sure that create_api_docs.dart has all the dependencies it needs.
|
||||
(cd "$FLUTTER_ROOT/dev/tools" && "$FLUTTER" pub get)
|
||||
(cd "$FLUTTER_ROOT" && "$DART" --disable-dart-dev --enable-asserts "$FLUTTER_ROOT/dev/tools/create_api_docs.dart" --output-dir="$DOC_DIR")
|
||||
(cd "$FLUTTER_ROOT" && "$DART" --enable-asserts "$FLUTTER_ROOT/dev/tools/create_api_docs.dart" --output-dir="$DOC_DIR")
|
||||
}
|
||||
|
||||
function main() {
|
||||
|
||||
@@ -187,6 +187,7 @@ Future<TaskResult> runTask(
|
||||
final Process runner = await startProcess(
|
||||
dartBin,
|
||||
<String>[
|
||||
// TODO(matanlurey): This is load bearing; see https://github.com/flutter/flutter/issues/154268#issuecomment-2318996125.
|
||||
'--disable-dart-dev',
|
||||
'--enable-vm-service=0', // zero causes the system to choose a free port
|
||||
'--no-pause-isolates-on-exit',
|
||||
|
||||
@@ -642,7 +642,7 @@ String get dartBin =>
|
||||
String get pubBin =>
|
||||
path.join(flutterDirectory.path, 'bin', 'cache', 'dart-sdk', 'bin', 'pub');
|
||||
|
||||
Future<int> dart(List<String> args) => exec(dartBin, <String>['--disable-dart-dev', ...args]);
|
||||
Future<int> dart(List<String> args) => exec(dartBin, args);
|
||||
|
||||
/// Returns a future that completes with a path suitable for JAVA_HOME
|
||||
/// or with null, if Java cannot be found.
|
||||
|
||||
Reference in New Issue
Block a user