From fd1291fe5e768d829cb6009f52fe944e53de297a Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Sat, 15 Jun 2019 10:20:19 -0700 Subject: [PATCH] pass .packages path to snapshot invocation (#34517) --- bin/flutter | 2 +- bin/flutter.bat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/flutter b/bin/flutter index b8c604a9580..6579b643e02 100755 --- a/bin/flutter +++ b/bin/flutter @@ -180,4 +180,4 @@ fi # FLUTTER_TOOL_ARGS isn't quoted below, because it is meant to be considered as # separate space-separated args. -"$DART" $FLUTTER_TOOL_ARGS "$SNAPSHOT_PATH" "$@" +"$DART" --packages="$FLUTTER_TOOLS_DIR/.packages" $FLUTTER_TOOL_ARGS "$SNAPSHOT_PATH" "$@" diff --git a/bin/flutter.bat b/bin/flutter.bat index 4547692f877..b53961c2b56 100644 --- a/bin/flutter.bat +++ b/bin/flutter.bat @@ -177,7 +177,7 @@ REM REM Do not use the CALL command in the next line to execute Dart. CALL causes REM Windows to re-read the line from disk after the CALL command has finished REM regardless of the ampersand chain. -"%dart%" %FLUTTER_TOOL_ARGS% "%snapshot_path%" %* & exit /B !ERRORLEVEL! +"%dart%" --packages="%flutter_tools_dir%\.packages" %FLUTTER_TOOL_ARGS% "%snapshot_path%" %* & exit /B !ERRORLEVEL! :final_exit EXIT /B %exit_code%