!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

67 Members
A room for PHP developers running on Nix19 Servers

Load older messages


SenderMessageTime
2 May 2024
@drupol:matrix.org@drupol:matrix.org * In the following draft PR, I can now run extra composer commands before building the composer repository (vendor) ! 20:31:15
@nick_kadutskyi:matrix.org@nick_kadutskyi:matrix.org set a profile picture.21:19:13
4 May 2024
@drupol:matrix.org@drupol:matrix.orghttps://github.com/NixOS/nixpkgs/pull/30911221:08:05
@drupol:matrix.org@drupol:matrix.orghttps://github.com/NixOS/nixpkgs/pull/30913222:17:49
5 May 2024
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyz joined the room.07:55:57
@drupol:matrix.org@drupol:matrix.org catman: ping 07:56:40
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzI'm here07:56:49
@drupol:matrix.org@drupol:matrix.orgSetting the APCU Autoloader Prefix to the package name might introduce symbols that are not valid.07:57:06
@drupol:matrix.org@drupol:matrix.org(space, hyphens, etc etc)07:57:14
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzRight, so a base64 encode of the package name?07:57:26
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzI mean, it could be anything, I don't think the exact prefix matters, right?07:57:45
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzI sort of meant that the builder seems to have a fixed string07:57:53
@drupol:matrix.org@drupol:matrix.orgI 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.org@drupol:matrix.orgUntil the patch is not in Composer, I must use that flag.07:58:25
@drupol:matrix.org@drupol:matrix.orgOnce 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.org@drupol:matrix.orgBecause 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.org@drupol:matrix.orgCan 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.org@drupol:matrix.org 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.org@drupol:matrix.orgThat'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.org@drupol:matrix.org(one of the true thing!)08:02:59

Show newer messages


Back to Room ListRoom Version: 6