railwayapp / nixpacks

App source + Nix packages + Docker = Image
https://nixpacks.com
MIT License
2.33k stars 222 forks source link

PHP 8.0 default Laravel build failing #1040

Closed christopherarter closed 6 months ago

christopherarter commented 6 months ago

Is there an existing issue for this?

Describe the bug

Getting a docker build failure for the default Laravel template:

#8 21.64          at /nix/store/lgcjj6s23v2203zyihsd0j26wh1saj0c-source/pkgs/build-support/trivial-builders/default.nix:88:7:
#8 21.64
#8 21.64            87|       inherit buildCommand name;
#8 21.64            88|       passAsFile = [ "buildCommand" ]
#8 21.64              |       ^
#8 21.64            89|         ++ (derivationArgs.passAsFile or []);
#8 21.64
#8 21.64        error: php80 has been dropped due to the lack of maintenance from upstream for future releases

To reproduce

Start a new project and select the Laravel template.

Expected behavior

Successful build

Environment

version v1.20.0 on railway

github-actions[bot] commented 6 months ago

Hello, @christopherarter! Thanks for your submission.

Our team will respond soon. If you need more immediate help, try our Forum or our Discord. Thanks!

brody192 commented 6 months ago

php 8.0 is not supported anymore (whether intentionally or not) please use php 8.1

christopherarter commented 6 months ago

@brody192 Should I report this in another Railway repo? It's the image used by the Railway template itself. I didn't select 8.0.

Screen Shot 2024-01-04 at 6 26 02 PM
brody192 commented 6 months ago

yes that repo is out of date, you would need to change the php version used in the composer file within your cloned repo

christopherarter commented 6 months ago

Ah ok, thank you!