clean cgo cache before rebuilding frankenphp (reports wrong version from cgo includes, even if they're updated)

This commit is contained in:
henderkes
2026-05-15 12:54:05 +07:00
parent 6fda358c90
commit a88e426623

View File

@@ -107,6 +107,7 @@ trait frankenphp
InteractiveTerm::setMessage('Building frankenphp: ' . ConsoleColor::yellow('building with xcaddy'));
shell()->cd(BUILD_LIB_PATH)
->setEnv($env)
->exec('go clean -cache') // fix stale include evaluation
->exec("xcaddy build --output frankenphp {$xcaddy_modules}");
$builder->deployBinary(BUILD_LIB_PATH . '/frankenphp', BUILD_BIN_PATH . '/frankenphp');