-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DX-5154: drupal-environment-detector new release broke btl project #4583
Comments
@jonedadev can you please confirm the version of BLT you are running? I was going to fix this, then noticed that as of 13.5.2 it should already be resolved. see https://github.com/acquia/blt/blob/main/src/Robo/Common/EnvironmentDetector.php#L113 and https://github.com/acquia/blt/blob/main/src/Robo/Common/EnvironmentDetector.php#L252. |
It completely bricks any drupal site using BLT 12. I'm currently on 12.8.2 and got drupal-environment-detector via composer update. |
ah ok. so first, I'd suggest you upgrade to BLT 13. but i'll open a PR for BLT 12 and see if we can cut a release that marks the 1.5.0 environment detector incompatible. |
…d above incompatible.
in the interim (and in case we don't cut a 12.x release) you can add the following to your composer.json to fix it:
or you can pin the require section to 1.4.1. either or. |
BLT 12 is unmaintained and has not had a release in 18 months. More breakage of this nature is very likely to happen. See https://docs.acquia.com/blt/#releases-and-versioning,
BLT 13 should be a relatively painless upgrade, it's only a major release because some functionality was moved to plugins: https://github.com/acquia/blt/releases/tag/13.0.0 |
Upgrading to the required BLT Version 13.5.2 required Drush 11 which again implies a lot of dependencies. So an upgrade can be quite a pain. |
We'll fix this in #4587 |
FATAL ERROR
Getting this error after release 1.5.0 of drupal-environment-detector project got live.
Fatal error: Declaration of Acquia\Blt\Robo\Common\EnvironmentDetector::getSiteName($site_path) must be compatible with Acquia\DrupalEnvironmentDetector\AcquiaDrupalEnvironmentDetector::getSiteName(string $site_path): ?string in /var/lib/tugboat/vendor/acquia/blt/src/Robo/Common/EnvironmentDetector.php on line 238
The text was updated successfully, but these errors were encountered: