!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

67 Members
A room for PHP developers running on Nix19 Servers

Load older messages


SenderMessageTime
26 Apr 2023
@drupol:matrix.org@drupol:matrix.orgLet's push the idea further and try to implement it correctly then05:45:52
@drupol:matrix.org@drupol:matrix.orgSo at some point composition-c4 will be obsolete 😅05:46:21
@jtojnar:matrix.orgJan Tojnarsince we cannot use IFD or recursive Nix in Nixpkgs – it will need to be rewritten in some other language05:46:22
@drupol:matrix.org@drupol:matrix.orgYeah I don't understand all these things yet but I trust you.05:47:05
@drupol:matrix.org@drupol:matrix.orgWhat do you advise me to do to start ?05:47:59
@jtojnar:matrix.orgJan Tojnarhigh level: you need to download all the packages mentioned in the lock file, and then create a json file as described in https://getcomposer.org/doc/05-repositories.md#composer05:49:13
@jtojnar:matrix.orgJan Tojnarthat is all https://github.com/fossar/composition-c4/blob/493ddc4a8279cde3bee0db1d04fd7d4838d51ab9/src/fetch-deps.nix does05:49:23
@jtojnar:matrix.orgJan Tojnaryou would need to do that in FOD05:50:11
@drupol:matrix.org@drupol:matrix.orgOh. That will be fun.05:50:32
@drupol:matrix.org@drupol:matrix.orgI'm scared already.05:50:42
@jtojnar:matrix.orgJan Tojnar then you would have a setup hook replace packagist with the repo you made 05:50:50
@jtojnar:matrix.orgJan Tojnarthat one should work as is05:50:55
@drupol:matrix.org@drupol:matrix.orgI will try...05:51:50
@drupol:matrix.org@drupol:matrix.orgThanks man...05:52:02
@drupol:matrix.org@drupol:matrix.orgI could basically copy paste that file in the pr and see how it behaves.05:54:33
@drupol:matrix.org@drupol:matrix.orgI can get it downloading the git repos... that works.06:29:20
@drupol:matrix.org@drupol:matrix.orgimage.png
Download image.png
06:33:22
@drupol:matrix.org@drupol:matrix.org#investigating06:33:23
@drupol:matrix.org@drupol:matrix.orgI've got issue while cloning repos like phpstan/phpstan... it seems to be stuck.07:55:00
@drupol:matrix.org@drupol:matrix.orgI just can't pass the moment it tries to download it.07:55:12
@drupol:matrix.org@drupol:matrix.orgimage.png
Download image.png
07:56:45
@drupol:matrix.org@drupol:matrix.orgit's like that since now... 20 minutes or so.07:58:15
@drupol:matrix.org@drupol:matrix.org

tgerbet, Jan Tojnar Using composer install --no-autoloader in the FOD, then doing composer dump-autoload works very well. It's even faster to build a PHP derivation. I'm now wondering which route to take.

  1. The current original route in the PR
  2. The route with dump-autoload
  3. The route with composition-c4
08:20:48
@tgerbet:matrix.orgtgerbetThe composition-c4 way to fetch the deps is likely the best way in the sense it is not under the control of Composer so less likely to break08:25:18
@drupol:matrix.org@drupol:matrix.orgI know, I'm sure it's the safest way.08:25:56
@drupol:matrix.org@drupol:matrix.orgI just want to know what we should do here.08:26:32
@drupol:matrix.org@drupol:matrix.org The problem with composition-c4 is that it is much slower to build a project since it is cloning each project's repo with all the refs. 08:26:59
@drupol:matrix.org@drupol:matrix.org(example, I'm unable to clone phpstan/phpstan here)08:27:15
@drupol:matrix.org@drupol:matrix.orgSo, I'm a bit curious on which route to take.08:27:29
@jtojnar:matrix.orgJan Tojnarhow are you cloning it?08:35:55

Show newer messages


Back to Room ListRoom Version: 6