-
-
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
When running composer require on the project, it dies #38
Comments
Looks like issue is also appearing when executing Any idea how it should be fixed ?
|
Drupal doesn't yet support symfony/console >3. Our drupal site composer.json file includes a line limiting symfony/console to versions something like Since global composer can still fall prey to dependency conflicts, drush/drush for example requires |
Edit. I forgot we were going to try and fix this. |
Current readme states : However, composer.json defines more requirements :
Wouldn't it make sense to update readme to make dependencies more exaustive ? I can make a PR for it) |
If we make the dependencies more explicit we can work around the problem. @davidferlay feel free to give it a PR and see what happens! TravisCI workflow should be updated to test running the project against I do that for phpstan-drupal: https://github.com/mglaman/phpstan-drupal/blob/master/.travis.yml#L19 |
Roger that @mglaman During further playing and when trying the cgr solution proposed by @cloudstrife602 (but outside of a Drupal project), I encountered another issue related to Composer : Action
Or
fyi docker image used here includes php and composer Observed resultBinary is not executed and return error message :
Expected result
Did I get something wrong ? |
Because it had no idea how to load its autoloader
This doesn't support the global install very well if you do not run the phar. So it needs to be updated to support loading the autoloader in global. See https://github.com/mglaman/drupalorg-cli
|
Problem is not only in autoader here. After fixing autoloader path #47, got next issue: So it cause error
|
@Sergey-Orlov thanks. The PR #50 is now verifying your fix for the autoloader and confirming the |
I just learned that Nette/DI supports |
I'm tagging a new release. This should fix global installs |
When running
composer require mglaman/drupal-check --dev
on a Drupal project, it will crash. This is due to Drupal'sminimum-stability:dev
setting. This causedsymfony/console
to come in as 4.2.x and conflict city fired off.The text was updated successfully, but these errors were encountered: