Skip to content

Commit 2f606dc

Browse files
committed
Guard against AppVeyor losing deps issue
Possibly due to concurrent build cache updates or some changes in the remote image. Some locking mechanism still could be required.
1 parent 04cc2f6 commit 2f606dc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

appveyor/build_task.bat

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ echo Updating dependencies in %DEPS_DIR%
2222
cmd /c phpsdk_deps --update --no-backup --branch %BRANCH% --stability %STABILITY% --deps %DEPS_DIR%
2323
if %errorlevel% neq 0 exit /b 3
2424

25+
rem Something went wrong, most likely when concurrent builds were to fetch deps
26+
rem updates. It might be, that some locking mechanism is needed.
27+
if not exist "%DEPS_DIR%" (
28+
cmd /c phpsdk_deps --update --force --no-backup --branch %BRANCH% --stability %STABILITY% --deps %DEPS_DIR%
29+
)
30+
if %errorlevel% neq 0 exit /b 3
31+
2532
cmd /c buildconf.bat --force
2633
if %errorlevel% neq 0 exit /b 3
2734

0 commit comments

Comments
 (0)