!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

76 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
24 May 2023
@drupol:matrix.orgPolSimpler and definitely faster.13:52:42
@drupol:matrix.orgPol The idea is to run composer install, as usual. This will create the vendor directory with all the deps.
Then, run composer build-local-repo. The command will just create a composer repo tree structure by copying the dependencies from vendor :)
13:53:42
@drupol:matrix.orgPolThis has been implemented in the plugin at: https://github.com/drupol/composer-local-repo-plugin/commit/e4e96810d5cbaa0b80fce6ab6848404ff61e1da713:54:26
@philipp:xndr.dephilippHad similar issues. Maybe because of the long thread just above your message?14:41:54
@drupol:matrix.orgPoloops.15:22:48
@jtojnar:matrix.orgJan Tojnar
In reply to @drupol:matrix.org
The idea is to run composer install, as usual. This will create the vendor directory with all the deps.
Then, run composer build-local-repo. The command will just create a composer repo tree structure by copying the dependencies from vendor :)
Is the structure of the vendor directory guaranteed to be stable?
15:39:45
@drupol:matrix.orgPolI think yes15:41:22
@drupol:matrix.orgPolI don't see it changing anytime soon15:41:31
@drupol:matrix.orgPolBut it could be changing of course, but why would it change ?15:41:51
@jtojnar:matrix.orgJan Tojnar🤷‍♀️ but if we want a long term reproducibility, we need to control as many factors as possible15:44:40
@jtojnar:matrix.orgJan Tojnarnot sure how realistic and necessary is that with PHP packages15:45:32
@jtojnar:matrix.orgJan Tojnar * though, I am not sure how realistic and/or necessary is that with PHP packages 15:45:51
@drupol:matrix.orgPolIMHO, I don't think it will ever change.15:51:12
@drupol:matrix.orgPolI also wrote Jordi by email, I hope I'll get a replu.15:52:01
@drupol:matrix.orgPol * I also wrote Jordi by email, I hope I'll get a reply. 15:52:04
@drupol:matrix.orgPolI also have issues on Darwin: https://logs.ofborg.org/?key=nixos/nixpkgs.225401&attempt_id=fe475da1-6c83-40ff-acf0-f233f89db28015:52:46
@drupol:matrix.orgPolThere is something that provoque a different hash, I just can't seem to find the reason yet.15:53:16
@drupol:matrix.orgPolIf anyone running a Mac is around, it would be helpful.15:53:26
@drupol:matrix.orgPolI think I have the reason... fix on its way.16:01:37
@drupol:matrix.orgPolIssue fixed on Darwin, I guess we're back to green state now. https://github.com/NixOS/nixpkgs/pull/225401/checks?check_run_id=1373263518817:20:22
@drupol:matrix.orgPolI'll rewrite the documentation tonight.17:32:15
@drupol:matrix.orgPolWe have a huge thread indeed, my bad.17:34:43
@drupol:matrix.orgPolThis thread is related to the new PHP builder.17:34:53
@drupol:matrix.orgPol * This thread is related to the new PHP builder for Nix.17:34:57
@drupol:matrix.orgPolMaybe I should not use it if it creates sync issues.17:35:09
25 May 2023
@drupol:matrix.orgPolPR back to green state: https://github.com/NixOS/nixpkgs/pull/22540106:26:05
@drupol:matrix.orgPolFeel free to review and/or contribute to it !06:26:36
@drupol:matrix.orgPolI refactored the plugin to use the Composer API correctly to download and install the packages. It works even better :)10:08:32
@drupol:matrix.orgPolI just made a diagram on how the new PHP wrapper is working: https://planttext.com/api/plantuml/png/bLLBRzim3BxhLn3jRKMB9iqfXw4lh1dMROQ1xgx8RC9QbZn9JkD_F_eHFvgqpN9HGl8ZFtuIcMiVf0j5feK853J2Bzf2j8ZWjY2Te1DAve6iWMTQ5GvXCeU5VGKAy6fTwiKQPHKLMGttgBKaT5AWILgxa4MmfiYM_DsdP7BfP0OHboH5kJGXaab2PWNJou7_rcuFsdqecQ4FZbHDUU31lmKQXJ_HUxd26qqh0uvMwo2a2jOnkGsSwihmu12D44kxXPDbrUIvibbkFRhptDaNLE72qFO4JX-RQ5cAlESBDGIaX-WIJdyxQLOuyk-IVJUihDPtrZJABQnDQzZa65YjVWUP7bLfZIhj85V7GDgZ0yqw4DyWi4A7PNB89x6gvL2fMrtWOQNYZvMAktHxOiKVYzKZttGI7-ZaHWNQo83xJw4od7-jBlJihCC9_baRvsqZkw8_iFJlEXSsmtjohJ_Uy_UCXOZ7zU86CXaPfUwxVRGg1V8WDvAqN6eKm1y6rB0vtDcyh0OpM525SyX29UHGrTLOXWFPClAUfsoOY2b_u_ny2Gt6OIYSwUZDnfndZN4E3sXuybbTRPNKNHNetyeWk6PgYv0N0SX0M3ThntCOzXMRyw1qhVplQzK7ZtgC9hjh6_NukSejy2YL-rYrpcn_znTVU8bgz7s7RHlJyRkRDiQ1ffaqz8m-r7Z8fKfvn_cB5s_D83n6jPkVlkQRcASyaQ7QgxfgiqvdZIxtA5sDALqrnZdyaPgIYjAe04WpQBDAlPTm_6wYMMESGpkua63Eul4A9nQeTyUOsSqd0dJ1dLw-p3IPrCCpR_ub6Ud6MV_d_GbnpSIgVvj_14:43:58
@drupol:matrix.orgPolThe Composer plugin has been refactored today and there has been a lot of improvements.19:57:22

Show newer messages


Back to Room ListRoom Version: 6