diff --git a/src/SPC/builder/unix/UnixBuilderBase.php b/src/SPC/builder/unix/UnixBuilderBase.php index 0bf11801..f627d6d9 100644 --- a/src/SPC/builder/unix/UnixBuilderBase.php +++ b/src/SPC/builder/unix/UnixBuilderBase.php @@ -268,12 +268,8 @@ abstract class UnixBuilderBase extends BuilderBase 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); } - $releaseInfo = json_decode(Downloader::curlExec( - 'https://api.github.com/repos/php/frankenphp/releases/latest', - hooks: [[CurlHook::class, 'setupGithubToken']], - retries: 3, - ), true); - $frankenPhpVersion = $releaseInfo['tag_name']; + [, $out] = shell()->execWithResult('go list -m github.com/dunglas/frankenphp@latest'); + $frankenPhpVersion = str_replace('github.com/dunglas/frankenphp v', '', $out[0]); $libphpVersion = $this->getPHPVersion(); $dynamic_exports = ''; if (getenv('SPC_CMD_VAR_PHP_EMBED_TYPE') === 'shared') { diff --git a/src/globals/test-extensions.php b/src/globals/test-extensions.php index 764cfc7d..97eaa850 100644 --- a/src/globals/test-extensions.php +++ b/src/globals/test-extensions.php @@ -43,7 +43,7 @@ $no_strip = false; $upx = false; // whether to test frankenphp build, only available for macos and linux -$frankenphp = false; +$frankenphp = true; // prefer downloading pre-built packages to speed up the build process $prefer_pre_built = false;