Problem/Motivation
Currently, you can't install Matomo in Drupal 10 installation.
Steps to reproduce
Try to install the module in Drupal 10 with Composer, and see that it fails:
$ composer require -n drupal/matomo
[...]
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires drupal/matomo ^1.14 -> satisfiable by drupal/matomo[1.14.0, 1.x-dev].
- drupal/matomo[1.14.0, ..., 1.x-dev] require drupal/core ^8.8.0 || ^9.0.0 -> found drupal/core[8.8.0-alpha1, ..., 8.9.x-dev, 9.0.0-alpha1, ..., 9.4.x-dev] but the package is fixed to 10.0.x-dev (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Proposed resolution
Add Drupal 10 under core_version_requirement in the matomo.info.yml file.
Remaining tasks
Add Drupal 10 as a core_version_requirement
- Fix PHPUnit test errors and self deprecation notices:
1) Drupal\Tests\matomo\Functional\AdminSettingsFormTest::testPageTracking with data set #2 ('/node/1\n/blog/*/view\nshop\n<front>', true) Failed asserting that false matches expected true.
3x: The Drupal\Tests\matomo\Functional\AdminSettingsFormTest::$modules property must be declared protected. See https://www.drupal.org/node/2909426
3x in DrupalListener::startTest from Drupal\Tests\Listeners
Comments
Comment #3
ressaComment #4
ressaComment #5
grimreaperThis should be treated in #3252606: [X.0.x] Roadmap as D10 requires PHP 8.1 we will need a new major version.
Comment #6
grimreaperNow that 2.0.x branch had been initialized I can finish this issue.
Comment #8
grimreaperComment #9
ressaThanks! I can now download and install Matomo in Drupal 10.
Comment #10
grimreaperYou're welcome!
Thanks for your contributions and testing!
:)
Important note: you may want to fix the commit of the 2.0.x you are using as this branch will be used for the new architecture, stuff may break before update path is done.
Comment #11
ressaPerfect, thanks for the heads up.