resource-watcher does not support Symfony 6

Created on 11 December 2023, over 1 year ago

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

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France prudloff Lille

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @prudloff
  • First commit to issue fork.
  • Status changed to Needs review over 1 year ago
  • Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 7.3 & MySQL 5.6
    last update over 1 year ago
    Waiting for branch to pass
  • 🇮🇳India viren18febs

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

  • Status changed to Needs work over 1 year ago
  • 🇫🇷France prudloff Lille

    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)   
    
  • 🇮🇳India viren18febs

    I have updated the patch file, please review.

  • 🇫🇷France prudloff Lille

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

  • Status changed to Closed: won't fix about 1 month ago
  • 🇫🇷France prudloff Lille

    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.

Production build 0.71.5 2024