Actually run flutter-dev from source (turns out bash is NP-hard) (#153863)

Fixes
https://github.com/flutter/flutter/pull/153599#issuecomment-2302587254.
This commit is contained in:
Matan Lurey
2024-08-21 15:05:54 -07:00
committed by GitHub
parent 4f37ef14ef
commit b883b2337d

View File

@@ -254,16 +254,16 @@ function shared::execute() {
upgrade_flutter 7< "$SHARED_NAME"
case "$BIN_NAME" in
flutter-dev)
# FLUTTER_TOOL_ARGS aren't quoted below, because it is meant to be
# considered as separate space-separated args.
exec "$DART" --packages="$FLUTTER_TOOLS_DIR/.dart_tool/package_config.json" $FLUTTER_TOOL_ARGS "$SCRIPT_PATH" "$@"
;;
flutter*)
# FLUTTER_TOOL_ARGS aren't quoted below, because it is meant to be
# considered as separate space-separated args.
exec "$DART" --disable-dart-dev --packages="$FLUTTER_TOOLS_DIR/.dart_tool/package_config.json" $FLUTTER_TOOL_ARGS "$SNAPSHOT_PATH" "$@"
;;
flutter-dev*)
# FLUTTER_TOOL_ARGS aren't quoted below, because it is meant to be
# considered as separate space-separated args.
exec "$DART" --packages="$FLUTTER_TOOLS_DIR/.dart_tool/package_config.json" $FLUTTER_TOOL_ARGS "$SCRIPT_PATH" "$@"
;;
dart*)
exec "$DART" "$@"
;;