diff --git a/src/Package/Target/php/frankenphp.php b/src/Package/Target/php/frankenphp.php index 2af52702..3114a0d6 100644 --- a/src/Package/Target/php/frankenphp.php +++ b/src/Package/Target/php/frankenphp.php @@ -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');