-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Drupal 8 installation instructions #222
Comments
Thank you! I ran into some similar warnings and errors about missing phpunit classes. After ... |
This shouldn't cause an issue, though. I have various runs going against 8.9 and 9.0 Requiring |
When it dumps a version of composer 1 into For me, the benefits of Composer 2 outweigh having easy access to all the packages in |
That's interesting. I haven't experienced that, which is why I'm a bit confused. So when you run Composer scripts, it's loading the local version to execute them than the globally installed one? Is there an easy to reproduce sample so that I can make a test workflow? The tests all use v2 |
https://www.drupal.org/project/drupal/issues/3128631 is the core issue at hand. When you first run composer, everything works fine and runs using Composer 2. But because drupal/core-dev requires composer/composer:^1.9.1 (see https://packagist.org/packages/drupal/core-dev#8.9.x-dev), it installs the composer binary to /vendor/bin/composer and composer prefers to use that once it's available, therefore making every subsequent composer run use Composer 1. We had to workaround this on a Drupal 8 site by getting rid of the drupal/core-dev dependency and instead requiring each of those dependencies manually, using the same version requirements as the core-dev package specifies. But excluding the composer/composer dependency. This was fixed in drupal/core-dev as of Drupal 9.1. |
🤯 @davereid thanks. I'll need to find time to try and work with this. |
Curious if those reporting the issue have vendor/bin in their PATH? |
No activity on this. Closing. If you have issues with drupal-check, use phpstan directly |
How is drupal-check installed?
drupal-check is installed as a dependency to my project
Environment:
Describe the bug
I ran into a few conflicts that weren't obvious when installing this for Drupal 8 -
composer require phpunit/phpunit
you get a version that's too high for Drupal 8 supportOnce I required phpunit:^7 (corresponding to the highest version supported in Drupal\TestTools), everything worked great
Should the core-dev require be removed from the tests in https://github.com/mglaman/drupal-check/blob/master/.github/workflows/php.yml and replaced with just phpunit?
Console output
The text was updated successfully, but these errors were encountered: