From 3388672e5ad7d12fc3f3f1a2b9b110789a5f35b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Tue, 8 Sep 2026 11:34:15 +0200 Subject: [PATCH] frankenphp: build the Mercure hub with its 0.x compatibility tags Mercure 1.0 gates its 0.x behaviors (legacy mercure claim, topic= selectors) behind the deprecated_topic and deprecated_claim build tags, only honored when the Caddyfile sets protocol_version_compatibility 8. FrankenPHP ships them in its Docker images and CI builds so users can migrate progressively; static binaries get their tags from here. Go ignores unknown tags, so FrankenPHP versions still on Mercure 0.x build unchanged. --- src/Package/Target/php/frankenphp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Package/Target/php/frankenphp.php b/src/Package/Target/php/frankenphp.php index c2e67c2f8..afb8c25c8 100644 --- a/src/Package/Target/php/frankenphp.php +++ b/src/Package/Target/php/frankenphp.php @@ -144,7 +144,7 @@ public function buildFrankenphpForUnix(TargetPackage $package, PackageInstaller '-X \'github.com/caddyserver/caddy/v2.CustomBinaryName=frankenphp\' ' . '-X \'github.com/caddyserver/caddy/v2.CustomVersion=FrankenPHP ' . "v{$frankenphp_version} PHP {$libphp_version} Caddy'\\\" " . - "-tags={$muslTags}nobadger,nomysql,nopgx{$no_brotli}{$no_watcher}", + "-tags={$muslTags}nobadger,nomysql,nopgx,deprecated_topic,deprecated_claim{$no_brotli}{$no_watcher}", 'LD_LIBRARY_PATH' => BUILD_LIB_PATH, ]; InteractiveTerm::setMessage('Building frankenphp: ' . ConsoleColor::yellow('building with xcaddy')); @@ -303,7 +303,7 @@ public function buildFrankenphpForWindows(TargetPackage $package, PackageInstall ]))); // build tags: skip watcher (no inotify/kqueue on Windows) - $go_build_tags = 'nobadger,nomysql,nopgx,nowatcher'; + $go_build_tags = 'nobadger,nomysql,nopgx,deprecated_topic,deprecated_claim,nowatcher'; if (!$installer->isPackageResolved('brotli')) { $go_build_tags .= ',nobrotli'; }