-
Notifications
You must be signed in to change notification settings - Fork 444
FrankenPHP plugin fails to build on FreeBSD #2327
Copy link
Copy link
Closed
Description
Hi,
I am attempting to build the FrankenPHP plugin with the www/caddy-custom port using poudriere on FreeBSD, but the build fails due to a module path mismatch and subsequent build constraints issues.
Configuration used:
.if ${.CURDIR:M*/www/caddy-custom}
CADDY_CUSTOM_PLUGINS= github.com/php/frankenphp/caddy
.endif
Build error:
go: github.com/php/frankenphp/caddy@v1.12.1 found: parsing go.mod:
module declares its path as: github.com/dunglas/frankenphp/caddy
but was required as: github.com/php/frankenphp/caddy
This indicates that the module path has changed from github.com/php/frankenphp to github.com/dunglas/frankenphp, which breaks the build.
I then tried to switch to the new path:
CADDY_CUSTOM_PLUGINS= github.com/dunglas/frankenphp/caddy
Resulting error:
2026/03/27 14:00:34 [INFO] exec (timeout=0s): /usr/local/bin/go125 build -buildmode=exe -v -trimpath -ldflags=-s -buildvcs=false -o /wrkdirs/usr/ports/www/caddy-custom/work/caddy-custom-2.11.2.0.0.4.5.10/caddy
package caddy
imports github.com/dunglas/frankenphp/caddy
imports github.com/dunglas/frankenphp
imports github.com/dunglas/frankenphp/internal/cpu: build constraints exclude all Go files in /root/go/pkg/mod/github.com/dunglas/frankenphp@v1.12.1/internal/cpu
2026/03/27 14:00:35 [INFO] Cleaning up temporary folder: /tmp/buildenv_2026-03-27-1400.2320564948
2026/03/27 14:00:35 [FATAL] exit status 1
*** Error code 1
It seems there is a mismatch between the declared module path and the expected import path, and possibly an additional issue related to build constraints on FreeBSD.
Do you have any recommendation or known workaround to properly build FrankenPHP as a Caddy plugin on FreeBSD?
Thanks in advance for your help.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels