drush gives warning on json parsing in tests

Created on 3 March 2023, about 2 years ago
Updated 6 July 2024, 9 months ago

Problem/Motivation

When using drush pmu [module_name] or drush pm:enable [module_name] with whatever module, drush is displaying this warning: [warning] Unable to parse /srv/www/htdocs/[...]/html/modules/contrib/patchinfo/tests/modules/test_composer_syntax_error/composer.json. Check your JSON syntax.

Of course this composer.json has an intended error, because it there for testing, so fixing the corrupt composer.json file is not an option.

Steps to reproduce

Use drush pmu [module_name] or drush pm:enable [module_name]

Proposed resolution

Drush should not check files in tests.

Remaining tasks

Find out why drush is doing that and open an issue at drush.

User interface changes

n/a

API changes

n/a

Data model changes

n/a

🐛 Bug report
Status

Postponed: needs info

Component

Code

Created by

🇩🇪Germany kulmjens

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

Comments & Activities

  • Issue created by @kulmjens
  • Issue was unassigned.
  • Status changed to Postponed: needs info 9 months ago
  • 🇩🇪Germany FeyP

    Thanks for filing this issue. I can't reproduce with current Drush 12.5.2.0, Drupal 10.3.0, PHP 8.3.8. Looks like this might have actually been fixed by Drush in the meantime. Can you still reproduce the issue?

Production build 0.71.5 2024