Remove Ludwig from Composer
Error on fresh clones:
/app $ drush updb
[error] File not found: /app/web/modules/contrib/feeds/lib/laminas-laminas-servicemanager/3.15.0/src/autoload.php.
I've dig a bit into this.
So it seems the problems is that laminas-servicemanager
which is a dependency from feeds
, is only declared in feeds ludwig.json and not in composer.json.
From my understanding Ludwig
requires us to go into admin/reports/packages
to download the missing dependencies declared in the json
file. It's not an automated flow.
Declaring the dependency in our composer does not solve this, because ultimately it's a Ludwig problem.
In any case it seems Ludwig
itself advices one should not use it at the same time than Composer.
Sources:
- https://www.drupal.org/docs/contributed-modules/ludwig/ludwig-warnings-and-troubleshooting
- https://www.drupal.org/docs/contributed-modules/ludwig/why-ludwig#s-can-i-use-both-composer-and-ludwig-in-my-project
I tested removing it and although it fixes the issue, it also needed a drush cdel core.extension module.ludwig
to remove some errors, so it seems we'll need to clean up all sites if we remove it.
Any feedback? Any reason to keep Ludwig
? cc/ all