mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
keep retrying more
This commit is contained in:
parent
a77e49cbc9
commit
598f6d55c5
@ -268,11 +268,19 @@ abstract class UnixBuilderBase extends BuilderBase
|
|||||||
logger()->warning('caddy-cbrotli module is enabled, but brotli library is not built. Disabling caddy-cbrotli.');
|
logger()->warning('caddy-cbrotli module is enabled, but brotli library is not built. Disabling caddy-cbrotli.');
|
||||||
$xcaddyModules = str_replace('--with github.com/dunglas/caddy-cbrotli', '', $xcaddyModules);
|
$xcaddyModules = str_replace('--with github.com/dunglas/caddy-cbrotli', '', $xcaddyModules);
|
||||||
}
|
}
|
||||||
$releaseInfo = json_decode(Downloader::curlExec(
|
$releaseInfo = false;
|
||||||
'https://api.github.com/repos/php/frankenphp/releases/latest',
|
$retries = 5;
|
||||||
hooks: [[CurlHook::class, 'setupGithubToken']],
|
while (!$releaseInfo && --$retries >= 0) {
|
||||||
retries: 3,
|
try {
|
||||||
), true);
|
$releaseInfo = json_decode(Downloader::curlExec(
|
||||||
|
'https://api.github.com/repos/php/frankenphp/releases/latest',
|
||||||
|
hooks: [[CurlHook::class, 'setupGithubToken']],
|
||||||
|
retries: 3,
|
||||||
|
), true, 512, JSON_THROW_ON_ERROR);
|
||||||
|
} catch (\Exception) {
|
||||||
|
sleep(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
$frankenPhpVersion = $releaseInfo['tag_name'];
|
$frankenPhpVersion = $releaseInfo['tag_name'];
|
||||||
$libphpVersion = $this->getPHPVersion();
|
$libphpVersion = $this->getPHPVersion();
|
||||||
$dynamic_exports = '';
|
$dynamic_exports = '';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user