mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 01:45:36 +08:00
clean cgo cache before rebuilding frankenphp (reports wrong version from cgo includes, even if they're updated)
This commit is contained in:
@@ -107,6 +107,7 @@ trait frankenphp
|
|||||||
InteractiveTerm::setMessage('Building frankenphp: ' . ConsoleColor::yellow('building with xcaddy'));
|
InteractiveTerm::setMessage('Building frankenphp: ' . ConsoleColor::yellow('building with xcaddy'));
|
||||||
shell()->cd(BUILD_LIB_PATH)
|
shell()->cd(BUILD_LIB_PATH)
|
||||||
->setEnv($env)
|
->setEnv($env)
|
||||||
|
->exec('go clean -cache') // fix stale include evaluation
|
||||||
->exec("xcaddy build --output frankenphp {$xcaddy_modules}");
|
->exec("xcaddy build --output frankenphp {$xcaddy_modules}");
|
||||||
|
|
||||||
$builder->deployBinary(BUILD_LIB_PATH . '/frankenphp', BUILD_BIN_PATH . '/frankenphp');
|
$builder->deployBinary(BUILD_LIB_PATH . '/frankenphp', BUILD_BIN_PATH . '/frankenphp');
|
||||||
|
|||||||
Reference in New Issue
Block a user