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

Issue fork hook_watch-3407892

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

prudloff created an issue. See original summary.

viren18febS made their first commit to this issue’s fork.

viren18febs’s picture

Status: Active » Needs review
StatusFileSize
new462 bytes

I have updated the .json file for resolve the issue, please review.

prudloff’s picture

Status: Needs review » Needs work

Drupal 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:

drupal/core-dev                 10.1.6  requires  symfony/finder (^6.3)                          
drush/drush                     12.4.2  requires  symfony/finder (^6)   
viren18febs’s picture

StatusFileSize
new447 bytes

I have updated the patch file, please review.

prudloff’s picture

This does not change the problem.
IMHO the only viable solution is if yosymfony/resource-watcher starts supporting Symfony 6.

prudloff’s picture

Status: Needs work » Closed (won't fix)

yosymfony/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.