Repository navigation
add --with-frankenphp-app=/path/to/app option - #891
Conversation
064c57a to
c56646f
Compare
c56646f to
4d35011
Compare
|
No better idea too, unless we implement However, if you want to implement |
|
I thought about fetch-on-build, but then remembered that you wanted to keep all network calls and downloads in the download stage (which makes sense, github release fetching is surprisingly prone to failure). Frankenphp source is fairly small, I think it's acceptable too. |
crazywhalecc
left a comment
There was a problem hiding this comment.
Will we still use dunglas ?
| * Process the --with-frankenphp-app option | ||
| * Creates app.tar and app.checksum in source/frankenphp directory | ||
| */ | ||
| protected function processFrankenphpApp(): void |
There was a problem hiding this comment.
How about processing frankenphp app before building everything? Although I don't have any build requirements for frankenphp embed app, but if something goes wrong here, it would be annoying to wait for dozens of minutes to build and then report an error.
crazywhalecc
left a comment
There was a problem hiding this comment.
Will we still use dunglas ?
@dunglas not sure about plans to switch the go package name. The frankenphp.dev PR has been active for months. |
|
Currently yes, we still use |
|
We could instead change --with-frankenphp-app use an Otherwise, just don't support this in docker? |
I think passing it in via environment variables would be more feasible. We could mount the directory in the spc-docker script and then pass the replaced value to docker. In this way, even if we don't want to implement it for docker, we can leave the docker script alone. But, this ultimately depends on how the majority build FrankenPHP.
Off-topic, considering that we'll be building different SAPIs as separate packages in the upcoming v3, and frankenphp is more independent than other SAPIs, perhaps we can first consider whether it can be simply separated into |
|
Something with the --with github.com stuff replacement isn't working quite right. I get a freestanding /caddy at the end. |
|
@crazywhalecc can you try if this works on mac? If it's working, it should be ready for merge. |
What does this PR do?
@dunglas I hope this is the idiomatic way to achieve this?
Checklist before merging
@crazywhalecc adding frankenphp as a library is a bit of a dirty hack to depend on the source to be downloaded. better ideas?