Problem/Motivation
The module can't be installed on Drupal 10:
Problem 1
- yosymfony/resource-watcher v3.0.0 requires symfony/finder ^2.7|^3.0|^4.0|^5.0 -> found symfony/finder[v2.7.0, ..., v2.8.52, v3.0.0, ..., v3.4.47, v4.0.0, ..., v4.4.44, v5.0.0, ..., v5.4.27] but the package is fixed to v6.3.5 (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.
- drupal/hook_watch 1.x-dev is an alias of drupal/hook_watch dev-1.x and thus requires it to be installed too.
- drupal/hook_watch dev-1.x requires yosymfony/resource-watcher ^3.0 -> satisfiable by yosymfony/resource-watcher[v3.0.0].
- Root composer.json requires drupal/hook_watch 1.x-dev@dev -> satisfiable by drupal/hook_watch[1.x-dev (alias of dev-1.x)].
Steps to reproduce
composer require 'drupal/hook_watch:1.x-dev@dev'
Proposed resolution
I created an upstream issue: https://github.com/yosymfony/resource-watcher/issues/17
Comments
Comment #3
viren18febs commentedI have updated the .json file for resolve the issue, please review.
Comment #4
prudloff commentedDrupal 10 is based on Symfony 6 so requiring a lower version of a Symfony component is likely to cause conflicts.
For example, these commonly used packages require symfony/finder 6:
Comment #5
viren18febs commentedI have updated the patch file, please review.
Comment #6
prudloff commentedThis does not change the problem.
IMHO the only viable solution is if yosymfony/resource-watcher starts supporting Symfony 6.
Comment #7
prudloff commentedyosymfony/resource-watcher has been unmaintained for years.
And I don't use hook_watch anymore so I won't rewrite it with another library.
I am marking this module as "Seeking new maintainer" in case someone wants to work on it.