Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
composer global require drupal/grn
Changed current directory to /Users/wim.leers/.composer
Using version ^2.8 for drupal/grn
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove symfony/console v2.8.13
- Conclusion: don't install symfony/console v2.8.13
- drupal/core 8.0.0 requires symfony/console 2.7.* -> satisfiable by symfony/console[v2.7.0, v2.7.1, v2.7.10, v2.7.11, v2.7.12, v2.7.13, v2.7.14, v2.7.15, v2.7.16, v2.7.17, v2.7.18, v2.7.19, v2.7.2, v2.7.20, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9].
[...]
- Installation request for symfony/debug (locked at v3.0.9) -> satisfiable by symfony/debug[v3.0.9].
Installation failed, reverting ./composer.json to its original content.
The only thing I've got installed is drush and its dependencies.
$ composer global info
Changed current directory to /Users/wim.leers/.composer
consolidation/annotated-command 2.0.3 Initialize Symfony Console commands from annotated command class methods.
consolidation/output-formatters 2.1.3 Format text by applying transformations provided by plug-in formatters.
dnoegel/php-xdg-base-dir 0.1 implementation of xdg base directory specification for php
drush/drush 8.1.7 Drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for...
jakub-onderka/php-console-color 0.1
jakub-onderka/php-console-highlighter v0.3.2
nikic/php-parser v2.1.1 A PHP parser written in PHP
pear/console_table v1.3.0 Library that makes it easy to build console style tables.
phpdocumentor/reflection-docblock 2.0.4
psr/log 1.0.2 Common interface for logging libraries
psy/psysh v0.7.2 An interactive shell for modern PHP.
symfony/console v2.8.13 Symfony Console Component
symfony/debug v3.0.9 Symfony Debug Component
symfony/event-dispatcher v2.8.13 Symfony EventDispatcher Component
symfony/finder v2.8.13 Symfony Finder Component
symfony/polyfill-mbstring v1.3.0 Symfony polyfill for the Mbstring extension
symfony/var-dumper v2.8.13 Symfony mechanism for exploring and dumping PHP variables
symfony/yaml v2.8.13 Symfony Yaml Component
victorjonsson/markdowndocs 1.3.7 Command line tool for generating markdown-formatted class documentation
webmozart/assert 1.1.0 Assertions to validate method input/output with nice error messages.
webmozart/path-util 2.3.0 A robust cross-platform utility for normalizing, comparing and modifying file paths.
Comments
Comment #2
Wim LeersMy best guess is that this is the problem:
… because
grn
is automatically turned intodrupal/grn
, it seems to automatically depend ondrupal/core
, even though it does not.Because of the automagic stuff that d.o does (https://www.drupal.org/docs/develop/using-composer/using-composer-to-man...), I can't even figure out how to look at
drupal/grn
'scomposer.json
. Which means I can't actually verify whether it's depending ondrupal/core
.composer
itself also does not provide any helpful commands — at least not by looking at it its list of commands, or searching the web.Comment #3
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedcomposer info --all drupal/grn
should show the available version and composer metadataComment #4
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedTry
composer global require --update-with-dependencies drupal/grn
Comment #5
Wim Leers#3 thanks!
#4 doesn't work, unfortunately :(
Comment #6
jcnventura CreditAttribution: jcnventura at Wunder commentedNot sure what the solution would be here, but it seems to be that all projects of type "drupal-drush" just just depend on "drupal/drush" and not "drupal/core"
Comment #7
jcnventura CreditAttribution: jcnventura at Wunder commentedSeems to be blocked by #2715435: Support for Drush extensions.
Comment #8
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedWorkaround: Add the git repo of grn to your composer.json. This will bypass the drupal.org integration and will read type:drupal-drush directly from the git repo.