!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

77 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
25 Apr 2023
@drupol:matrix.orgPolI don't know what to think yet there.18:19:09
@drupol:matrix.orgPolWould be nice to have some additional inputs from others. 18:19:24
@drupol:matrix.orgPol

Added in the doc:

As the autoloader optimization can be activated directly within the
`composer.json` file, we do not enable any autoloader optimization flags.
18:23:02
@jtojnar:matrix.orgJan Tojnar tgerbet, Pol both vendor directory and cache sound too much to me like it could change whenever composer wants 19:34:34
@jtojnar:matrix.orgJan Tojnar I would just create a new composer repository like composition-c4 does 19:35:06
@jtojnar:matrix.orgJan Tojnarand make FOD of that19:35:11
@jtojnar:matrix.orgJan Tojnarof course, you would still need to clean out the .git directories 19:35:45
@jtojnar:matrix.orgJan Tojnarbut sounds like the method with least amount of jank19:36:14
@drupol:matrix.orgPol I updated the docs with how to override the composer.json file. 20:05:56
26 Apr 2023
@drupol:matrix.orgPolI'd be happy to merge features from your project in here, but I don't know where to begin. I haven't fully grasped yet what makes it more efficient.05:05:49
@jtojnar:matrix.orgJan Tojnarit is not really more efficient but it is a different approach that will not change when composer changes05:42:46
@jtojnar:matrix.orgJan Tojnarsince it is basically creating a packagist mirror05:43:10
@drupol:matrix.orgPolBut it only works for git based deps, right ?05:43:42
@jtojnar:matrix.orgJan Tojnar that is the limitation of composition-c4 because it uses builtins.fetchGit but it will not be a problem for you, when you will use a different fetcher (e.g. git clone inside FOD) 05:44:46
@jtojnar:matrix.orgJan TojnarI meant composition-c4 only as approach, the implementation will need to be completely different05:45:33
@drupol:matrix.orgPolLet's push the idea further and try to implement it correctly then05:45:52
@drupol:matrix.orgPolSo 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.orgPolYeah I don't understand all these things yet but I trust you.05:47:05
@drupol:matrix.orgPolWhat 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.orgPolOh. That will be fun.05:50:32
@drupol:matrix.orgPolI'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.orgPolI will try...05:51:50
@drupol:matrix.orgPolThanks man...05:52:02
@drupol:matrix.orgPolI could basically copy paste that file in the pr and see how it behaves.05:54:33

Show newer messages


Back to Room ListRoom Version: 6