14 Aug 2024 |
piotrkwiecinski | Pol: are you saying that php8.4 update won't be merged til the official release in nov? I though you wanted to have a fix for https://github.com/loophp/php-src-nix/actions/runs/10364035720/job/28688711194 | 15:08:56 |
Pol | Php 8.4 beta1 will be announced these days, no worries. | 15:13:45 |
Pol | Once it's updated, we test once more the build to make sure that they didn't updated the tarball, then we merge it | 15:14:03 |
piotrkwiecinski | Ah I beta1 announcement I thought it'll be stuck until the general release :). I misread the comment. | 15:15:09 |
Pol | ;) | 15:16:26 |
piotrkwiecinski | I was looking at some errors in your build | 16:57:03 |
piotrkwiecinski | https://github.com/php/php-src/commit/e2d97314ab342d434e778cd00a2f34e4bdb07664 | 16:57:06 |
piotrkwiecinski | I don't see a backport to 8.2.14 in the list of tags | 16:57:25 |
piotrkwiecinski | https://github.com/loophp/php-src-nix/actions/runs/10364035720/job/28688702715 | 16:58:04 |
piotrkwiecinski | 8.2.13 and lower seem to fail due to issues with libxml 2.13 | 16:59:57 |
piotrkwiecinski | same applies to 8.3.0-8.3.3 | 17:00:45 |
piotrkwiecinski | most likely one of the patches is missing | 17:00:56 |
piotrkwiecinski | I guess we'll have to add them to loophp repo right? | 17:03:06 |
Pol | Ideally yes | 19:11:14 |
Pol | 8.2.14 doesn't exists IIRC | 19:11:22 |
piotrkwiecinski | 8.2.14
Released: 21 Dec 2023 | 19:19:18 |
Pol | I probably forgot it perhaps | 20:04:18 |
piotrkwiecinski | Looks like php core team too as they haven't patched it :) | 20:04:51 |
piotrkwiecinski | php 8.1.28 builds in php-src-nix | 20:05:41 |
piotrkwiecinski | I'm testing 8.1.18 but looks like 8.1.x branch should be fine now | 20:06:09 |
piotrkwiecinski | I'll probably have some time next week to play around with stabilizing other branches | 20:07:29 |
Pol | oki | 20:16:45 |
16 Aug 2024 |
| nebucatnetzer13 joined the room. | 06:51:09 |
nebucatnetzer13 | Hi everyone, does someone have a public project where phpunit is working and the dev dependencies aren't part of the final derivation? I think I know how I would package a whole project by itself but I would like to achieve the following:
- Load Nix Shell and an additional container image for the DB
- Run unittests
| 06:53:18 |
nebucatnetzer13 | * Hi everyone, does someone have a public project where phpunit is working and the dev dependencies aren't part of the final derivation? I think I know how I would package a whole project by itself but I would like to achieve the following:
- Load Nix Shell and an additional container image for the DB
- Run unittests
- Create final derivation/container image
| 06:53:41 |
nebucatnetzer13 | * Hi everyone, does someone have a public project where phpunit is working and the dev dependencies aren't part of the final derivation? I think I know how I would package a whole project by itself but I would like to achieve the following:
- Load Nix Shell and an additional container image for the DB
- Run unittests
- Create final derivation/container image without dev dependencies
With poetry2nix this is quite easy to do but I haven't figured out how to do it with PHP so that I don't have to redownload all the composer dependencies every time. With a container based approach I have a base image which contains the production dependencies and for the unittests I build an image on top of that, that contains the dev dependencies as well.
| 06:55:45 |
Pol | Let me find you an example... | 07:22:00 |
Pol | This might help you: https://github.com/loophp/nix-shell/blob/master/templates/basic/flake.nix you have a couple of PHP apps packaged. | 07:22:45 |
Pol | And here you have an example on how to add a flake.nix to the symfony/demo project: https://github.com/drupol/symfony-demo/pull/1 | 07:23:35 |
Pol | Oh and it builds the OCI image too | 07:23:50 |