| 20 May 2023 |
Pol | I just pushed the changes in the branch. | 15:34:50 |
Pol | The two working derivations are composer and phpunit. | 15:35:01 |
Pol | In reply to @drupol:matrix.org How about using jq to nuke require-dev from composer.json and packages-dev from composer.lock ? :D I just tested this, it works pretty well actually. | 16:09:41 |
Pol | Building composer takes 1 minute now instead of 10 before | 16:11:45 |
Pol | 43 seconds actually. | 16:13:08 |
Pol | OMG... It also fix psaln :D | 16:19:06 |
Pol | Going to commit all of this | 16:19:11 |
Pol | * OMG... It also fix psalm :D | 16:20:42 |
Pol | Jan Tojnar Gaƫl Reyrol ^^ breakthrough ^^ | 16:20:58 |
Pol | In reply to @drupol:matrix.org How about using jq to nuke require-dev from composer.json and packages-dev from composer.lock ? :D That seems to be actually a good idea ! | 16:21:23 |
Pol | I just pushed everything :D | 16:21:41 |
Pol | https://github.com/NixOS/nixpkgs/pull/232450/files#diff-8b7b6933957bf6ee2ddf23b376fe97a96708ced9cdaf1fcb26f452873a76723dR41 | 16:22:15 |
Pol | jq '."packages-dev" = []' composer.lock > newComposer.lock
mv newComposer.lock composer.lock
jq '."require-dev" = {}' composer.json > newComposer.json
mv newComposer.json composer.json
| 16:22:24 |
Pol | That stuff fixed everything | 16:22:29 |
Pol | I have the feeling that we finally see some light at the end of the tunnel. | 16:30:58 |
Pol | I'm testing it here, I can't make it fail anymore! | 16:31:14 |
Jan Tojnar | Pol: how did you solve the issue with store paths in FOD in packages.json? | 16:31:14 |
Pol | Ah that. | 16:31:33 |
Pol | I found something interesting about that. | 16:31:49 |
Jan Tojnar | or are you still doing the /build/source thing? | 16:32:12 |
Pol | Instead of doing symlinks, I'm copying stuff from the local repo :) | 16:32:14 |
Pol | Thanks to this variable: COMPOSER_MIRROR_PATH_REPOS | 16:32:26 |
Pol | But | 16:32:28 |
Pol | The solution was: | 16:32:43 |
Pol | substituteInPlace .repo/packages.json \
--replace '/build/source/repo' $composerVendorCache \
| 16:32:46 |
Pol | In reply to @jtojnar:matrix.org or are you still doing the /build/source thing? That stuff is the only thing I don't like in the implementation. | 16:34:01 |
Pol | I would I could immediately use $out in it. | 16:34:11 |
Jan Tojnar | ah, you are copying the repo into the builder | 16:34:37 |
Pol | I haven't found a better alternative yet. | 16:35:26 |
Pol | I just copy packages.json, nothing else | 16:35:42 |