From b883b2337d069de5f2e561bff59d084a9561e152 Mon Sep 17 00:00:00 2001 From: Matan Lurey Date: Wed, 21 Aug 2024 15:05:54 -0700 Subject: [PATCH] Actually run `flutter-dev` from source (turns out bash is NP-hard) (#153863) Fixes https://github.com/flutter/flutter/pull/153599#issuecomment-2302587254. --- bin/internal/shared.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/internal/shared.sh b/bin/internal/shared.sh index a305a97436..0915a32766 100644 --- a/bin/internal/shared.sh +++ b/bin/internal/shared.sh @@ -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" "$@" ;;