diff --git a/bin/flutter b/bin/flutter index 6579b643e0..74a971267d 100755 --- a/bin/flutter +++ b/bin/flutter @@ -43,7 +43,7 @@ function retry_upgrade { local total_tries="10" local remaining_tries=$((total_tries - 1)) while [[ "$remaining_tries" -gt 0 ]]; do - (cd "$FLUTTER_TOOLS_DIR" && "$PUB" upgrade "$VERBOSITY") && break + (cd "$FLUTTER_TOOLS_DIR" && "$PUB" upgrade "$VERBOSITY" --no-precompile) && break echo "Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... ($remaining_tries tries left)" remaining_tries=$((remaining_tries - 1)) sleep 5 diff --git a/bin/flutter.bat b/bin/flutter.bat index 66a6fa26ca..d87cc7332c 100644 --- a/bin/flutter.bat +++ b/bin/flutter.bat @@ -136,7 +136,7 @@ GOTO :after_subroutine SET /A remaining_tries=%total_tries%-1 :retry_pub_upgrade ECHO Running pub upgrade... - CALL "%pub%" upgrade "%VERBOSITY%" + CALL "%pub%" upgrade "%VERBOSITY%" --no-precompile IF "%ERRORLEVEL%" EQU "0" goto :upgrade_succeeded ECHO Error (%ERRORLEVEL%): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (%remaining_tries% tries left) timeout /t 5 /nobreak 2>NUL