-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version "dev-php74-compat" of "leafo/lessphp" does no exist #16082
Comments
Ah, I've found it, you define your own repository a few lines below: However, this makes it impossible to depend on Matomo as a dependency installed by composer. |
Hi, see #15180 for more information on why this is a slightly ugly hack. Matomo 3.x supports PHP 5.5 or later, so it can not be updated to the latest version of lessphp(which dropped support a while ago). But Matomo also needs to support PHP 7.4 which means this patch (matomo-org/lessphp@f16f698) needs to be applied to avoid warnings. With Matomo 4 support for old PHP versions is dropped so it should not matter anymore, but this means leafo/lessphp#647 still needs to be merged. |
If this is resolved in Matomo 4 basically can we close this issue? Or we still wait for the other issue to be merged? |
The composer file on branch The problemIn the current state, installing Matomo using the following command is not possible:
The command fails with an error like this:
Which is sad cause is both prevents users from installing and updating Matomo using composer and also makes it impossible to create other projects that depend on Matomo. The causeThe core issue is that Matomo currently relies on two private packages that must be installed from custom repositories as configured in Matomos composer file but composer does not load the repositories of requirements: https://getcomposer.org/doc/faqs/why-can%27t-composer-load-repositories-recursively.md Currently, every package that depends on Matomo must repeat the The solutionGet rid of the section
|
Seeing the 4.0 release, I just tried to upgrade my composer based matomo project to v4.0 and found this same issue
It'd be great to get this resolved now that v4 is released, so composer support isn't broken. |
@creativecoder I think to be able to go back to the normal upstream release, this pull request needs to be merged as without it lessphp won't work in Matomo when using PHP 7.4 or above. Once this is done and there is a new lessphp release (this part is optional as we could depend on a commit hash) we can simply use it instead. |
I will check how easy it would be to maybe switch to https://github.com/wikimedia/less.php instead. Should be more maintained 🙈 |
@sgiehl Considering that there is a section about this this could be surprisingly easy (I didn't know that there was another PHP implementation). Especially as it should not change the rest of the asset handling (as long as it compiles the css the same). (even though supporting source maps would be really nice for the future) |
I've just tried to install Matomo directly from the repository / via composer and the installation fails due to this requirement in
composer.json
:As it turns out, there is no such version as "dev-php74-compat", see https://packagist.org/packages/leafo/lessphp
The text was updated successfully, but these errors were encountered: