File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 51
51
REM Do not use the CALL command in the next line to execute Dart. CALL causes
52
52
REM Windows to re-read the line from disk after the CALL command has finished
53
53
REM regardless of the ampersand chain.
54
- " %dart% " --disable-dart-dev --packages=" %flutter_tools_dir% \.packages " %FLUTTER_TOOL_ARGS% " %snapshot_path% " %* & exit /B !ERRORLEVEL!
54
+ " %dart% " --disable-dart-dev --packages=" %flutter_tools_dir% \.dart_tool\package_config.json " %FLUTTER_TOOL_ARGS% " %snapshot_path% " %* & exit /B !ERRORLEVEL!
Original file line number Diff line number Diff line change @@ -163,9 +163,9 @@ GOTO :after_subroutine
163
163
POPD
164
164
165
165
IF " %FLUTTER_TOOL_ARGS% " == " " (
166
- " %dart% " --verbosity=error --snapshot=" %snapshot_path% " --packages=" %flutter_tools_dir% \.packages " --no-enable-mirrors " %script_path% "
166
+ " %dart% " --verbosity=error --snapshot=" %snapshot_path% " --packages=" %flutter_tools_dir% \.dart_tool\package_config.json " --no-enable-mirrors " %script_path% "
167
167
) else (
168
- " %dart% " " %FLUTTER_TOOL_ARGS% " --verbosity=error --snapshot=" %snapshot_path% " --packages=" %flutter_tools_dir% \.packages " " %script_path% "
168
+ " %dart% " " %FLUTTER_TOOL_ARGS% " --verbosity=error --snapshot=" %snapshot_path% " --packages=" %flutter_tools_dir% \.dart_tool\package_config.json " " %script_path% "
169
169
)
170
170
IF " %ERRORLEVEL% " NEQ " 0" (
171
171
ECHO Error: Unable to create dart snapshot for flutter tool. 1 >& 2
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ function upgrade_flutter () (
155
155
pub_upgrade_with_retry
156
156
157
157
# Compile...
158
- " $DART " --verbosity=error --disable-dart-dev $FLUTTER_TOOL_ARGS --snapshot=" $SNAPSHOT_PATH " --packages=" $FLUTTER_TOOLS_DIR /.packages " --no-enable-mirrors " $SCRIPT_PATH "
158
+ " $DART " --verbosity=error --disable-dart-dev $FLUTTER_TOOL_ARGS --snapshot=" $SNAPSHOT_PATH " --packages=" $FLUTTER_TOOLS_DIR /.dart_tool/package_config.json " --no-enable-mirrors " $SCRIPT_PATH "
159
159
echo " $compilekey " > " $STAMP_PATH "
160
160
fi
161
161
# The exit here is extraneous since the function is run in a subshell, but
@@ -222,7 +222,7 @@ function shared::execute() {
222
222
flutter* )
223
223
# FLUTTER_TOOL_ARGS aren't quoted below, because it is meant to be
224
224
# considered as separate space-separated args.
225
- exec " $DART " --disable-dart-dev --packages=" $FLUTTER_TOOLS_DIR /.packages " $FLUTTER_TOOL_ARGS " $SNAPSHOT_PATH " " $@ "
225
+ exec " $DART " --disable-dart-dev --packages=" $FLUTTER_TOOLS_DIR /.dart_tool/package_config.json " $FLUTTER_TOOL_ARGS " $SNAPSHOT_PATH " " $@ "
226
226
;;
227
227
dart* )
228
228
exec " $DART " " $@ "
You can’t perform that action at this time.
0 commit comments