!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

74 Members
A room for PHP developers running on Nix21 Servers

Load older messages


SenderMessageTime
5 May 2024
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzI sort of meant that the builder seems to have a fixed string07:57:53
@drupol:matrix.orgPolI did this instead: https://github.com/NixOS/nixpkgs/blob/990a2161d9e5c72db6227e0d395762c1ec27b751/pkgs/build-support/php/hooks/composer-install-hook.sh#L3107:57:54
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzYeah, that's what I was confused by07:58:11
@drupol:matrix.orgPolUntil the patch is not in Composer, I must use that flag.07:58:25
@drupol:matrix.orgPolOnce it will be merged, that flag will be obsolete.07:58:38
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzRight. Till then why use a fixed flag?07:58:43
@drupol:matrix.orgPolBecause it's not merged in Composer yet.07:59:04
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyz I get that. But ApcuAutoloaderPrefix can be set by the package itself, no? 07:59:28
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzWhy not have it hew as close to what upstream will eventually be?07:59:37
@drupol:matrix.orgPolCan you tell me what you would change in there? I don't get your point... sorry :S08:00:21
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyz I am assuming that the string ApcuAutoloaderPrefix is the literal prefix which will be set for each package 08:00:54
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzI think that before your upstream changes are merged (and there is a very slight chance upstream will just say no), it might be a good idea to implement the md5 hash thing downstream itself08:01:33
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzThat would ensure that every package will have a different prefix08:01:45
@drupol:matrix.orgPol We don't care about packages having different prefix... since they are all isolated from each other, there is NO risk of collision. 08:02:21
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzThat's also true.08:02:35
@drupol:matrix.orgPolThat's a cool thing from Nix :)08:02:44
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzHah08:02:49
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzTrue that08:02:51
@drupol:matrix.orgPol(one of the true thing!)08:02:59
@drupol:matrix.orgPol * (one of the cool thing!)08:03:03
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzHowever, there is still a chance of misconfiguration, right?08:03:40
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzSay I have 2 PHP services running and I mistakenly point caddy to the same php-fpm socket for both services.08:03:57
@drupol:matrix.orgPolNo08:04:07
@drupol:matrix.orgPolThere won't be any single issue08:04:13
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzBut then the APCu cache will be shared08:04:23
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzBecause the same pool is being used for both services08:04:33
@drupol:matrix.orgPolThen this is something I'm not aware of.08:04:47
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyz(I'm not a PHP dev so I'm just speculating here)08:05:06
@drupol:matrix.orgPolHow is APCu working?08:05:21
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzAPCu is a key-value store08:05:52

Show newer messages


Back to Room ListRoom Version: 6