tinytina → created an issue.
I can confirm this observation, although I think a better solution is to execute composer and plugins with correct users instead of allowing to execute as root via COMPOSER_ALLOW_SUPERUSER=1.
I tried installing drupal 10.2.4 and drush 12.4.3 in different docker images:
- drupal:10.1.4-apache uses composer 2.6.4 -> executing drush commands works as expected
- drupal:10.1.8-apache and drupal:10.2.3-apache are both using composer > 2.7 -> executing drush command results in the preflight error
+1 for this feature.
Tried diff from #4 with media_directories 2.1.0-beta2 and core 10.0.9, seems to work pretty well.
I came across the same error trying to use this module(version 2.1.1) with drupal 10.
Here is my patch:
https://www.drupal.org/files/issues/2023-03-16/cookie_content_blocker-d1... →
It should fix both
https://www.drupal.org/node/3104677 →
and
https://www.drupal.org/node/3158256 →