!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

76 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
25 Apr 2023
@tgerbet:matrix.orgtgerbetGreat! Because to be honest I was not really a big fan of mine18:08:45
@drupol:matrix.orgPolimage.png
Download image.png
18:09:15
@drupol:matrix.orgPolWDYT of that?18:09:18
@drupol:matrix.orgPolBasically, I merge 2 composer.json files together to override.18:09:34
@drupol:matrix.orgPolI think it's cleaner to do that.18:09:45
@tgerbet:matrix.orgtgerbetYep indeed, it's more readable 👍️18:10:45
@drupol:matrix.orgPolWe could even let users customize the overrides.18:10:58
@drupol:matrix.orgPolBut this could be done in a next phase.18:11:05
@drupol:matrix.orgPolRegarding this:18:12:53
@drupol:matrix.orgPolimage.png
Download image.png
18:12:55
@drupol:matrix.orgPolI don't know that thing yet.18:13:01
@tgerbet:matrix.orgtgerbetYeah this is the hard part :/ Both options have trade-offs, I'm not sure if one is really better than the other or if there is another way to explore18:15:39
@drupol:matrix.orgPolyeah it's scary.18:18:52
@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

Show newer messages


Back to Room ListRoom Version: 6