dont precompile dependencies when building the flutter tool (#42771)
This commit is contained in:
parent
e22d4aa140
commit
3f1f22c26e
@ -43,7 +43,7 @@ function retry_upgrade {
|
|||||||
local total_tries="10"
|
local total_tries="10"
|
||||||
local remaining_tries=$((total_tries - 1))
|
local remaining_tries=$((total_tries - 1))
|
||||||
while [[ "$remaining_tries" -gt 0 ]]; do
|
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)"
|
echo "Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... ($remaining_tries tries left)"
|
||||||
remaining_tries=$((remaining_tries - 1))
|
remaining_tries=$((remaining_tries - 1))
|
||||||
sleep 5
|
sleep 5
|
||||||
|
@ -136,7 +136,7 @@ GOTO :after_subroutine
|
|||||||
SET /A remaining_tries=%total_tries%-1
|
SET /A remaining_tries=%total_tries%-1
|
||||||
:retry_pub_upgrade
|
:retry_pub_upgrade
|
||||||
ECHO Running pub upgrade...
|
ECHO Running pub upgrade...
|
||||||
CALL "%pub%" upgrade "%VERBOSITY%"
|
CALL "%pub%" upgrade "%VERBOSITY%" --no-precompile
|
||||||
IF "%ERRORLEVEL%" EQU "0" goto :upgrade_succeeded
|
IF "%ERRORLEVEL%" EQU "0" goto :upgrade_succeeded
|
||||||
ECHO Error (%ERRORLEVEL%): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (%remaining_tries% tries left)
|
ECHO Error (%ERRORLEVEL%): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (%remaining_tries% tries left)
|
||||||
timeout /t 5 /nobreak 2>NUL
|
timeout /t 5 /nobreak 2>NUL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user