!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

64 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
20 Aug 2024
@piotrkwiecinski:matrix.orgpiotrkwiecinskiI'll migrate a couple more tomorrow. I have a boring 1h meeting. I'll kill 2 birds with 1 stone17:54:55
@drupol:matrix.orgPolOkay :)17:55:09
@piotrkwiecinski:matrix.orgpiotrkwiecinskiI'm slowly fixing php builds17:55:44
@piotrkwiecinski:matrix.orgpiotrkwiecinski68 pass, 40 to go17:55:59
@drupol:matrix.orgPolThank you once again!!!18:05:10
@drupol:matrix.orgPol piotrkwiecinski: Looks like the issue is in the autoloader generation in Composer... 21:32:05
@drupol:matrix.orgPolimage.png
Download image.png
21:32:10
21 Aug 2024
@fsagbuya:matrix.orgfsagbuya
In reply to @drupol:matrix.org
Done :)
Cheers! Will try this soon to replace the changes in this PR: https://github.com/NixOS/nixpkgs/pull/336044, likely when it's already available in the unstable branch.
02:19:50
@piotrkwiecinski:matrix.orgpiotrkwiecinski Pol: I reckon it's caused by --optimize-autoloader 06:50:01
@piotrkwiecinski:matrix.orgpiotrkwiecinskiI removed it from composer-vendor-hook.sh and I get the same hash every run. At least at the moment.06:52:15
@piotrkwiecinski:matrix.orgpiotrkwiecinskiAdding sort in both places maybe will help: https://github.com/composer/composer/blob/main/src/Composer/Autoload/AutoloadGenerator.php#L268 https://github.com/composer/composer/blob/main/src/Composer/Autoload/AutoloadGenerator.php#L280 07:09:01
@drupol:matrix.orgPol
In reply to @fsagbuya:matrix.org
Cheers! Will try this soon to replace the changes in this PR: https://github.com/NixOS/nixpkgs/pull/336044, likely when it's already available in the unstable branch.
Wait a bit, we identified an issue in the buildComposerProject2. We need to fix it asap before promoting the new builder.
07:33:21
@piotrkwiecinski:matrix.orgpiotrkwiecinski Pol: 18:37:55
@piotrkwiecinski:matrix.orgpiotrkwiecinski * Pol: I'm doing some digging into composer issue 18:38:06
@piotrkwiecinski:matrix.orgpiotrkwiecinskiThese paths are part of PSR4 logic18:39:01
@piotrkwiecinski:matrix.orgpiotrkwiecinskiIf I read it correctly autoload_psr4.php is generated first and is used by autoload_static.php18:40:26
@piotrkwiecinski:matrix.orgpiotrkwiecinskihttps://github.com/composer/composer/blob/main/src/Composer/Autoload/AutoloadGenerator.php#L263-L287 it's a good starting point for debugging18:49:59
@drupol:matrix.orgPol Most probably that the function getPathCode is missing a sort somewhere. 19:16:11
@drupol:matrix.orgPolBut I cannot have a look at this before next week19:16:24
@piotrkwiecinski:matrix.orgpiotrkwiecinskiI'm trying to see if adding sort before they are saved to file helps19:16:28
@drupol:matrix.orgPolI have some kind of hard deadline for the moment, and I can't do anything else.19:16:40
@piotrkwiecinski:matrix.orgpiotrkwiecinskiafter getPathCode19:16:47
@drupol:matrix.orgPolJust shove it in getPathCode so it's cleaner.19:17:09
@piotrkwiecinski:matrix.orgpiotrkwiecinski
        $exportedPaths = [];
        foreach ($paths as $path) {
            $exportedPaths[] = $this->getPathCode($filesystem, $basePath, $vendorPath, $path);
        }
19:17:31
@piotrkwiecinski:matrix.orgpiotrkwiecinskigetPathCode is a string19:17:38
@piotrkwiecinski:matrix.orgpiotrkwiecinskiso we have to sort the array after it's generated19:18:04
@drupol:matrix.orgPolhttps://github.com/composer/composer/blob/main/src/Composer/Autoload/AutoloadGenerator.php#L735C15-L735C35 19:19:03
@drupol:matrix.orgPolOh wait.19:19:15
@drupol:matrix.orgPolyou're right. sorry.19:19:26
@drupol:matrix.orgPol I guess it's a missing sort somewhere before that. 19:20:01

Show newer messages


Back to Room ListRoom Version: 6