WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

pear/console_table (locked at v1.3.0) blocks cgr installation of Drush 8.3.0 #39

@UTANdev

Description

@UTANdev

I can't install Drush 8 with cgr and am having trouble determining which project is forcing the lock which makes the Drush dependency fail.

monkey@Sonic ~/.composer $ cgr drush/drush 8.3.0
>> Running: composer '--working-dir=/home/monkey/.composer/global/drush/drush' require 'drush/drush:8.3.0'
Cannot create cache directory /home/monkey/.composer/cache/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/monkey/.composer/cache/files/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/monkey/.composer/cache/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache
./composer.json has been updated
Cannot create cache directory /home/monkey/.composer/cache/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/monkey/.composer/cache/files/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/monkey/.composer/cache/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache
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
    - Can only install one of: pear/console_table[v1.3.1, v1.3.0].
    - Can only install one of: pear/console_table[v1.3.1, v1.3.0].
    - Can only install one of: pear/console_table[v1.3.1, v1.3.0].
    - drush/drush 8.3.0 requires pear/console_table ~1.3.1 -> satisfiable by pear/console_table[v1.3.1].
    - Installation request for drush/drush 8.3.0 -> satisfiable by drush/drush[8.3.0].
    - Installation request for pear/console_table (locked at v1.3.0) -> satisfiable by pear/console_table[v1.3.0].


Installation failed, reverting ./composer.json to its original content.

I was unable to determine which project outside Drush requires pear/console_table 1.3.0:

monkey@Sonic ~/.composer $ grep -R --include="composer.json" "pear/console_table" ~
/home/monkey/.config/composer/vendor/pear/console_table/composer.json:    "name": "pear/console_table",
/home/monkey/.composer/global/drush/drush/vendor/pear/console_table/composer.json:    "name": "pear/console_table",
/home/monkey/.composer/global/drush/drush/vendor/drush/drush/composer.json:    "pear/console_table": "~1.3.0",
grep: /home/monkey/.cache/dconf: Permission denied
grep: warning: /home/monkey/tmp/ansible/test/utils/ansible-playbook_integration_runner/roles/ansible_test_deps/test/roles/ansible_test_deps: recursive directory loop

And yes, some /.composer directories are owned by root:

monkey@Sonic ~/.composer $ ls -al /home/monkey/.composer
total 1724
drwxr-xr-x  5 monkey root      4096 Aug  7 21:37 .
drwxr-xr-x 59 monkey monkey    4096 Aug  7 21:33 ..
-rw-rw-r--  1 monkey monkey 1704783 Aug  7 21:35 2016-09-12_11-27-19-1.2.1-old.phar
-rw-------  1 monkey monkey     142 Aug  7 21:37 auth.json
drwxr-xr-x  4 root   root      4096 Aug  7 21:35 cache
-rw-rw-r--  1 monkey monkey      95 Aug  7 20:33 composer.json
-rw-rw-r--  1 monkey monkey    9585 Aug  7 20:33 composer.lock
-rw-------  1 monkey monkey      21 Aug  7 21:37 config.json
drwxrwxr-x  3 monkey monkey    4096 Oct 19  2016 global
-rw-rw-r--  1 monkey monkey      13 Oct 19  2016 .htaccess
-rw-r--r--  1 root   root       799 Oct 19  2016 keys.dev.pub
-rw-r--r--  1 root   root       799 Oct 19  2016 keys.tags.pub
drwxrwxr-x  8 monkey monkey    4096 Aug  7 20:33 vendor

How can I resolve this version lock issue and install Drush?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions