Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/SPC/builder/unix/UnixBuilderBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,8 @@ protected function buildFrankenphp(): void
'XCADDY_GO_BUILD_FLAGS' => '-buildmode=pie ' .
'-ldflags \"-linkmode=external ' . $extLdFlags . ' ' .
'-X \'github.com/caddyserver/caddy/v2/modules/caddyhttp.ServerHeader=FrankenPHP Caddy\' ' .
'-X \'github.com/caddyserver/caddy/v2.CustomBinaryName=frankenphp\' ' .
'-X \'github.com/caddyserver/caddy/v2.CustomVersion=FrankenPHP ' .
'-X \'github.com/caddyserver/caddy/v2.CustomBinaryName=frankenphp ' .
"v{$frankenPhpVersion} PHP {$libphpVersion} Caddy'\\\" " .
"-tags={$muslTags}nobadger,nomysql,nopgx{$nobrotli}{$nowatcher}",
Comment on lines 457 to 463
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional: there doesn’t appear to be an automated test asserting the exact formatting of the XCADDY_GO_BUILD_FLAGS string for FrankenPHP (e.g., that CustomBinaryName and CustomVersion are separate -X entries and properly quoted). This area regressed once (#1056); extracting the ldflags construction into a helper and adding a unit test for the resulting env string would help prevent future quoting/concatenation mistakes.

Copilot uses AI. Check for mistakes.
'LD_LIBRARY_PATH' => BUILD_LIB_PATH,
Expand Down
Loading