From e894e4b5bc181aab68cc4f0f55cd408ce6b9cb40 Mon Sep 17 00:00:00 2001 From: Snider Date: Wed, 4 Mar 2026 17:27:43 +0000 Subject: [PATCH] fix: add cgo build tags to FrankenPHP files, add .gitignore Co-Authored-By: Virgil --- .gitignore | 1 + env.go | 2 ++ handler.go | 2 ++ 3 files changed, 5 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e660fd9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +bin/ diff --git a/env.go b/env.go index f59faf5..fdd0158 100644 --- a/env.go +++ b/env.go @@ -1,3 +1,5 @@ +//go:build cgo + package php import ( diff --git a/handler.go b/handler.go index af93f30..5dc0a85 100644 --- a/handler.go +++ b/handler.go @@ -1,3 +1,5 @@ +//go:build cgo + // Package php provides FrankenPHP embedding for Go applications. // Serves a Laravel application via the FrankenPHP runtime, with support // for Octane worker mode (in-memory, sub-ms responses) and standard mode