Skip to content
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

[console] Something goes wrong with your package. #2590

Open
ranqiangjun opened this issue Aug 16, 2016 · 32 comments
Open

[console] Something goes wrong with your package. #2590

ranqiangjun opened this issue Aug 16, 2016 · 32 comments

Comments

@ranqiangjun
Copy link
Contributor

ranqiangjun commented Aug 16, 2016

Hello @jmolivas , I found that the commit 8cdf2ef related to the PR #2499 caused an error.

When I work with the latest master branch (d6a5499), after run composer install, type drupal

$ drupal

 Something goes wrong with your package.
 Try downloading again.
 Executing:
 composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader

$ composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader
Root package 'drupal/console' cannot require itself in its composer.json
Did you accidentally name your root package after an external package?

So I try to find which commit caused that, then found 8cdf2ef.

@jmolivas
Copy link
Member

Try using beta-5 and not master

@sylus
Copy link

sylus commented Aug 16, 2016

Shouldn't master still always strive to be working?

For instance for anyone building on head just for testing new features.

I myself test all branches of drupalconsole so am getting a failure when testing master @ https://github.com/sylus/docker-drupalconsole

@jmolivas
Copy link
Member

@sylus Yes totally agree with you, master should always work, but had to break the rules this time from now until RC-1 by the end of the month.

@sylus
Copy link

sylus commented Aug 16, 2016

Ah no problem, completely understood! :) Thanks for the clarification about until RC-1 that solves my concerns :)

@sylus
Copy link

sylus commented Sep 27, 2016

Now that rc1 is out I attempted to build off of master and I still get an issue. I was hoping that this would be resolved now? I know I haven't connected to a drupal site yet but Docker is creating the service first and it will be volume mounted to a drupal f.s. when the container is launched. Shouldn't RC1 be building correctly now?

Dockerfile

# Drupal Console Docker Container
FROM drupalconsole/console:base-alpine
MAINTAINER William Hearn <[email protected]>

# Install Drupal Console using Composer.
RUN composer global config minimum-stability dev && \
    composer global require drupal/console:~1.0 --prefer-dist

# Display which version of Drupal Console was installed.
RUN drupal --check

Output

...
  - Installing drupal/console-core (1.0.0-rc1)
    Downloading: 100%
...
 Something goes wrong with your package.
 Try downloading again.
 Executing:
 composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader
The command '/bin/sh -c drupal check' returned a non-zero code: 1

@jmolivas
Copy link
Member

Looking at this @sylus

@sylus
Copy link

sylus commented Oct 3, 2016

Thanks for taking a look at this, I think it is the same as other people having this problem. At the time we are checking that drupal console got installed and runs correctly we have not yet linked it up to be mounted in a drupal file system so no autoload.php file is present. I think we should be able to check the simple status of drupal console without it having to be linked to a drupal site when doing such a simple init check.

Then on docker run we will be mounted in a drupal file system.

@Thomasvc1
Copy link

Thomasvc1 commented Oct 3, 2016

My terminal output on composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader
Problem 1
- Conclusion: don't install drupal/console 1.0.0-rc3
- Conclusion: don't install drupal/console 1.0.0-rc2
- Conclusion: don't install drupal/console 1.0.0-rc1
- Conclusion: don't install drupal/console 1.0.0-beta5
- Conclusion: don't install drupal/console 1.0.0-beta4
- Conclusion: don't install drupal/console 1.0.0-beta3
- Conclusion: don't install drupal/console 1.0.0-beta2
- Conclusion: don't install drupal/console 1.0.0-beta1
- Conclusion: don't install drupal/console 1.0.0-alpha2
- Conclusion: remove symfony/dom-crawler v3.1.4

@jmolivas
Copy link
Member

jmolivas commented Oct 4, 2016

@Thomasvc1 you will find an answer to this issue at this comment I did on a similar reported issue:
#2754 (comment)

@sylus
Copy link

sylus commented Oct 4, 2016

Here is my output:

Step 4 : RUN composer global config minimum-stability dev &&     composer global require drupal/console:~1.0       --prefer-dist       --optimize-autoloader       --sort-packages
 ---> Running in 8bddf88e6575
Changed current directory to /composer
Changed current directory to /composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing composer/installers (v1.2.0)
    Downloading: 100%

  - Installing symfony/polyfill-mbstring (dev-master 53ad9fa)
    Downloading: 100%

  - Installing ircmaxell/password-compat (1.0.x-dev 9b99377)
    Downloading: 100%

  - Installing symfony/polyfill-php55 (dev-master bf2ff9a)
    Downloading: 100%

  - Installing symfony/polyfill-php54 (dev-master 34d7619)
    Downloading: 100%

  - Installing symfony/http-foundation (2.8.x-dev 91f87d2)
    Downloading: 100%

  - Installing symfony/expression-language (2.8.x-dev 50c990e)
    Downloading: 100%

  - Installing symfony/dom-crawler (2.8.x-dev aac03b7)
    Downloading: 100%

  - Installing psr/log (dev-master 607ce1d)
    Downloading: 100%

  - Installing symfony/debug (2.8.x-dev 8c29235)
    Downloading: 100%

  - Installing symfony/css-selector (2.8.x-dev 71c8c3a)
    Downloading: 100%

  - Installing symfony/console (2.8.x-dev d7a5a88)
    Downloading: 100%

  - Installing stecman/symfony-console-completion (0.5.1)
    Downloading: 100%

  - Installing phpseclib/phpseclib (2.0.x-dev ab8028c)
    Downloading: 100%

  - Installing padraic/humbug_get_contents (dev-master 1bfe28c)
    Downloading: 100%

  - Installing padraic/phar-updater (dev-master c17eeb3)
    Downloading: 100%

  - Installing symfony/finder (2.8.x-dev bc24c8f)
    Downloading: 100%

  - Installing guzzlehttp/promises (1.2.0)
    Downloading: 100%

  - Installing psr/http-message (dev-master f6561bf)
    Downloading: 100%

  - Installing guzzlehttp/psr7 (dev-master 64862e8)
    Downloading: 100%

  - Installing guzzlehttp/guzzle (dev-master a0d7517)
    Downloading: 100%

  - Installing gabordemooij/redbean (v4.3.2)
    Downloading: 100%

  - Installing twig/twig (1.x-dev f00e7b8)
    Downloading: 100%

  - Installing symfony/event-dispatcher (2.8.x-dev 889983a)
    Downloading: 100%

  - Installing symfony/yaml (2.8.x-dev e754073)
    Downloading: 100%

  - Installing symfony/translation (2.8.x-dev bf0ff95)
    Downloading: 100%

  - Installing symfony/process (2.8.x-dev 024de37)
    Downloading: 100%

  - Installing symfony/filesystem (2.8.x-dev 44b4995)
    Downloading: 100%

  - Installing symfony/config (2.8.x-dev f8b1922)
    Downloading: 100%

  - Installing symfony/dependency-injection (2.8.x-dev ee9ec9a)
    Downloading: 100%

  - Installing drupal/console-en (1.0.0-rc1)
    Downloading: 100%

  - Installing dflydev/placeholder-resolver (dev-master c498d0c)
    Downloading: 100%

  - Installing dflydev/dot-access-data (dev-master 9c253bb)
    Downloading: 100%

  - Installing dflydev/dot-access-configuration (dev-master 9b65c83)
    Downloading: 100%

  - Installing drupal/console-core (1.0.0-rc4)
    Downloading: 100%

  - Installing doctrine/lexer (dev-master 83893c5)
    Downloading: 100%

  - Installing doctrine/annotations (v1.2.7)
    Downloading: 100%

  - Installing doctrine/collections (dev-master 2dfc898)
    Downloading: 100%

  - Installing alchemy/zippy (0.3.5)
    Downloading: 100%

  - Installing drupal/console (1.0.0-rc4)
    Downloading: 100%

phpseclib/phpseclib suggests installing ext-gmp (Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.)
phpseclib/phpseclib suggests installing ext-libsodium (SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.)
symfony/event-dispatcher suggests installing symfony/http-kernel ()
symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
alchemy/zippy suggests installing guzzle/guzzle (To use the GuzzleTeleporter)
Writing lock file
Generating optimized autoload files
 ---> f27ad5041a2c
Removing intermediate container 8bddf88e6575
Step 5 : RUN drupal --list
 ---> Running in bdc54ccc37e8

 Something goes wrong with your package.
 Try downloading again.
 Executing:
 composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader
The command '/bin/sh -c drupal --list' returned a non-zero code: 1

@sylus
Copy link

sylus commented Oct 4, 2016

@jmolivas again clarifying I just need a simple access check to verify drupal console. But I always hit up against:

https://github.com/hechoendrupal/DrupalConsole/blob/011fb398f820a9d866a3a8d208243d0195ab256d/bin/drupal.php#L16

Commands like drupal --list used to work without needing to be in a drupal folder.

@sylus
Copy link

sylus commented Oct 4, 2016

Can this also be labelled as a bug this was said to be fixed in 1.0-rc1 and am now at 1.0-rc4 and the issue still persists.

@gergelypap
Copy link

Do you actually run this tool before a release? :(

@jmolivas jmolivas added the bug label Oct 4, 2016
@jmolivas
Copy link
Member

jmolivas commented Oct 4, 2016

@sylus

I just installed DrupalConsole by using

curl https://drupalconsole.com/installer -L -o drupal.phar
mv drupal.phar /usr/local/bin/drupal
chmod +x /usr/local/bin/drupal

and it works
drupal-list

@bshaffer
Copy link

bshaffer commented Oct 5, 2016

@jmolivas Composer should also work. This is confirmed by the README, but also by best practices. How can be build and run other versions of the console otherwise?

@hanoii
Copy link

hanoii commented Oct 5, 2016

I am having this issue as well, although in a different environment. Run stand alone (not on a drupal root) doesn't work, but running on one does.

This is happening to me on a http://platform.sh project, which doesn't give much me the option of much tweaks after it is installed. On the other hand, the deployment always installs everything fresh, so it shouldn't be an issue. No self-update going on. Also running the latest drupal-composer.

beta5 worked fine.

Not root

~$ drupal --version

 Something goes wrong with your package.
 Try downloading again.
 Executing:
 composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader

ON a drupal root:

~/web$ drupal --version
Drupal Console version 1.0.0-rc4

Any ideas?

@sylus
Copy link

sylus commented Oct 5, 2016

@jmolivas my issue is with the composer install not the phar itself which doesn't have the issue.

@jerbob92
Copy link

jerbob92 commented Oct 5, 2016

I have the same issue. When I execute Drupal Console outside of the webroot:

~ # /var/www/website.com/vendor/bin/drupal direct_queue:run --uri="http://website.com" --root="/var/www/website.com/web" 53033 0

 Something goes wrong with your package.
 Try downloading again.
 Executing:
 composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader

When I execute it inside the webroot, it works:

/var/www/website.com/web # ../vendor/bin/drupal direct_queue:run --uri="http://website.com" --root="/var/www/website.com/web" 53033 0

It looks like Drupal console recently stopped using the --uri and --root params. I'm also having issues generating proper url's, even with passing the --uri option, this worked before.

@jerbob92
Copy link

jerbob92 commented Oct 5, 2016

@jmolivas The reason the phar file works is because getcwd() returns the path to the phar file, while in a normal composer/normal php behavior install it will always return the current working directory. So I guess most code in vendor/drupal/console/bin/drupal.php is just plain wrong:

@sylus
Copy link

sylus commented Oct 6, 2016

Just tried this again on 1.0-rc5 and same issue see docker build out below:

docker build -t drupalconsole/console:master-alpine master/alpine
Sending build context to Docker daemon 2.048 kB
Step 1 : FROM drupalconsole/console:base-alpine
 ---> 3e99a9f89648
Step 2 : MAINTAINER William Hearn <[email protected]>
 ---> Using cache
 ---> cb393dafb198
Step 3 : ENV DRUPAL_CONSOLE_VERSION "dev-master"
 ---> Running in c16ed8458b84
 ---> 2391e452db15
Removing intermediate container c16ed8458b84
Step 4 : RUN composer global config minimum-stability dev &&     composer global require drupal/console:~1.0@RC --prefer-dist --optimize-autoloader --sort-packages
 ---> Running in 8e495e456b2f
Changed current directory to /composer
Changed current directory to /composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing composer/installers (v1.2.0)
    Downloading: 100%

  - Installing symfony/polyfill-mbstring (dev-master 53ad9fa)
    Downloading: 100%

  - Installing ircmaxell/password-compat (1.0.x-dev 9b99377)
    Downloading: 100%

  - Installing symfony/polyfill-php55 (dev-master bf2ff9a)
    Downloading: 100%

  - Installing symfony/polyfill-php54 (dev-master 34d7619)
    Downloading: 100%

  - Installing symfony/http-foundation (2.8.x-dev 83262dd)
    Downloading: 100%

  - Installing symfony/expression-language (2.8.x-dev 50c990e)
    Downloading: 100%

  - Installing symfony/dom-crawler (2.8.x-dev aac03b7)
    Downloading: 100%

  - Installing psr/log (dev-master 607ce1d)
    Downloading: 100%

  - Installing symfony/debug (2.8.x-dev 8c29235)
    Downloading: 100%

  - Installing symfony/css-selector (2.8.x-dev 71c8c3a)
    Downloading: 100%

  - Installing symfony/console (2.8.x-dev 7350016)
    Downloading: 100%

  - Installing stecman/symfony-console-completion (0.5.1)
    Downloading: 100%

  - Installing phpseclib/phpseclib (2.0.x-dev 7bc7c8c)
    Downloading: 100%

  - Installing guzzlehttp/promises (1.2.0)
    Downloading: 100%

  - Installing psr/http-message (dev-master f6561bf)
    Downloading: 100%

  - Installing guzzlehttp/psr7 (dev-master 64862e8)
    Downloading: 100%

  - Installing guzzlehttp/guzzle (dev-master a0d7517)
    Downloading: 100%

  - Installing gabordemooij/redbean (v4.3.2)
    Downloading: 100%

  - Installing twig/twig (1.x-dev 33dfadb)
    Downloading: 100%

  - Installing symfony/yaml (2.8.x-dev e754073)
    Downloading: 100%

  - Installing symfony/translation (2.8.x-dev bf0ff95)
    Downloading: 100%

  - Installing symfony/process (2.8.x-dev 024de37)
    Downloading: 100%

  - Installing symfony/finder (2.8.x-dev bc24c8f)
    Downloading: 100%

  - Installing symfony/filesystem (2.8.x-dev 44b4995)
    Downloading: 100%

  - Installing symfony/event-dispatcher (2.8.x-dev 889983a)
    Downloading: 100%

  - Installing symfony/dependency-injection (2.8.x-dev 7bc01cf)
    Downloading: 100%

  - Installing symfony/config (2.8.x-dev f8b1922)
    Downloading: 100%

  - Installing drupal/console-en (1.0.0-rc1)
    Downloading: 100%

  - Installing dflydev/placeholder-resolver (dev-master c498d0c)
    Downloading: 100%

  - Installing dflydev/dot-access-data (dev-master 9c253bb)
    Downloading: 100%

  - Installing dflydev/dot-access-configuration (dev-master 9b65c83)
    Downloading: 100%

  - Installing drupal/console-core (1.0.0-rc5)
    Downloading: 100%

  - Installing doctrine/lexer (dev-master 83893c5)
    Downloading: 100%

  - Installing doctrine/annotations (v1.2.7)
    Downloading: 100%

  - Installing doctrine/collections (dev-master 2dfc898)
    Downloading: 100%

  - Installing alchemy/zippy (0.3.5)
    Downloading: 100%

  - Installing drupal/console (1.0.0-rc5)
    Downloading: 100%

phpseclib/phpseclib suggests installing ext-gmp (Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.)
phpseclib/phpseclib suggests installing ext-libsodium (SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.)
symfony/event-dispatcher suggests installing symfony/http-kernel ()
symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
alchemy/zippy suggests installing guzzle/guzzle (To use the GuzzleTeleporter)
Writing lock file
Generating optimized autoload files
 ---> a141770524c6
Removing intermediate container 8e495e456b2f
Step 5 : RUN drupal --list
 ---> Running in 54531d82c992

 DrupalConsole must be executed within a Drupal Site.
 Try changing to a Drupal site directory and download it by executing:

@jmolivas
Copy link
Member

jmolivas commented Oct 6, 2016

@sylus Starting on RC releases we decouple DrupalConsole into separated projects.

This is the new repo containing the box configuration and the one we use as the global executable
https://github.com/hechoendrupal/drupal-console-launcher

And the one you install per site is this one => https://github.com/hechoendrupal/DrupalConsole

@sylus
Copy link

sylus commented Oct 6, 2016

@jmolivas I tried the new console-launcher one and same issue.

Sorry rendering in markdown

@jmolivas

docker build -t drupalconsole/console:master-alpine master/alpine                                                1 ↵
Sending build context to Docker daemon 2.048 kB
Step 1 : FROM drupalconsole/console:base-alpine
 ---> 3e99a9f89648
Step 2 : MAINTAINER William Hearn <[email protected]>
 ---> Using cache
 ---> cb393dafb198
Step 3 : ENV DRUPAL_CONSOLE_VERSION "dev-master"
 ---> Using cache
 ---> 2391e452db15
Step 4 : RUN composer global config minimum-stability dev &&     composer global require drupal/console-launcher:~1.0@RC --prefer-dist --optimize-autoloader --sort-packages
 ---> Running in 74b403fc6c23
Changed current directory to /composer
Changed current directory to /composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)

...

  - Installing drupal/console-en (1.0.0-rc1)
    Downloading: 100%

  - Installing dflydev/placeholder-resolver (dev-master c498d0c)
    Downloading: 100%

  - Installing dflydev/dot-access-data (dev-master 9c253bb)
    Downloading: 100%

  - Installing dflydev/dot-access-configuration (dev-master 9b65c83)
    Downloading: 100%

  - Installing drupal/console-core (1.0.0-rc5)
    Downloading: 100%

  - Installing drupal/console-launcher (1.0.0-rc5)
    Downloading: 100%

symfony/event-dispatcher suggests installing symfony/http-kernel ()
symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
symfony/dependency-injection suggests installing symfony/expression-language (For using expressions in service container configuration)
Writing lock file
Generating optimized autoload files
 ---> 2ba3f25a90da
Removing intermediate container 74b403fc6c23
Step 5 : RUN drupal --list
 ---> Running in c0eeb515c2fb
 Something goes wrong with your drupal.phar archive.
 Try downloading again by executing from your terminal:
 curl https://drupalconsole.com/installer -L -o drupal.phar
The command '/bin/sh -c drupal --list' returned a non-zero code: 1

@jmolivas
Copy link
Member

jmolivas commented Oct 6, 2016

@sylus any reason to load the global executable using composer global require instead of

curl https://drupalconsole.com/installer -L -o drupal.phar
mv drupal.phar /usr/local/bin/drupal
chmod +x /usr/local/bin/drupal

@sylus
Copy link

sylus commented Oct 6, 2016

@jmolivas I will be including the phar form of this in the docker repo as well as a different variant, but I also wanted the composer build process too as we are extending from the composer base image @ https://github.com/RobLoach/docker-composer.

@jmolivas
Copy link
Member

jmolivas commented Oct 6, 2016

@sylus ok, I found some issues with the paths on the repo, I will be fixing those and ping back.

@sylus
Copy link

sylus commented Oct 17, 2016

Ah awesome thank you so much @jmolivas I really appreciate you taking a look at this. You are doing amazing work, can't say enough how great this tool is.

I did just give a try on the lastest master as saw the following commit:

24e84dd

I am now getting this but I assume it is because I need to use the console launcher instead?

Sending build context to Docker daemon 2.048 kB
Step 1 : FROM drupalconsole/console:base-alpine
 ---> 3e99a9f89648
Step 2 : MAINTAINER William Hearn <[email protected]>
 ---> Using cache
 ---> cb393dafb198
Step 3 : ENV DRUPAL_CONSOLE_VERSION "dev-master"
 ---> Using cache
 ---> 6641010b49c5
Step 4 : RUN composer global config minimum-stability dev &&     composer global require drupal/console:$DRUPAL_CONSOLE_VERSION --prefer-dist --optimize-autoloader --sort-packages
 ---> Using cache
 ---> 103cb98c3a07
Step 5 : RUN drupal --list
 ---> Running in f5f1488d0d37

 DrupalConsole must be executed within a Drupal Site.
 Try changing to a Drupal site directory and download it by executing:
 composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader
 composer update drupal/console --with-dependencies

At the end of the day just hoping to be able to run a simple console command without being attached to a Drupal instance to just check status of console. ^_^

@jmolivas
Copy link
Member

jmolivas commented Oct 17, 2016

@sylus I did some changes and sent a PR #2823 if no Drupal attached and executing DrupalConsole from code repo, no within a Drupal Site.

drupal-console-no-drupal-found-1

drupal-console-no-drupal-found-2

A better message warning should be show but is no longer breaking the DrupalConsole execution.

@sylus
Copy link

sylus commented Oct 17, 2016

Ah so cool, I will try out the P.R. and report back. Thank you so much! If ever your in ottawa doing a Drupal session, drinks are on me!

@sylus
Copy link

sylus commented Oct 23, 2016

I just gave this a go but still seem to have this issue, should I instead be using console-launcher?

Here is my full output.

Sending build context to Docker daemon 2.048 kB
Step 1 : FROM drupalconsole/console:base-alpine
 ---> 3e99a9f89648
Step 2 : MAINTAINER William Hearn <[email protected]>
 ---> Using cache
 ---> cb393dafb198
Step 3 : ENV DRUPAL_CONSOLE_VERSION "1.0-rc6"
 ---> Using cache
 ---> 4cc5ea6a4fc4
Step 4 : RUN composer global config minimum-stability dev &&   composer global require drupal/console:~1.0 --prefer-dist --optimize-autoloader &&   composer global update drupal/console --with-dependencies
 ---> Running in b5749d2b3d74
Changed current directory to /composer
Changed current directory to /composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing composer/installers (v1.2.0)
    Downloading: 100%

  - Installing symfony/polyfill-mbstring (dev-master 53ad9fa)
    Downloading: 100%

  - Installing ircmaxell/password-compat (1.0.x-dev 9b99377)
    Downloading: 100%

  - Installing symfony/polyfill-php55 (dev-master bf2ff9a)
    Downloading: 100%

  - Installing symfony/polyfill-php54 (dev-master 34d7619)
    Downloading: 100%

  - Installing symfony/http-foundation (2.8.x-dev 84c539f)
    Downloading: 100%

  - Installing symfony/expression-language (2.8.x-dev 50c990e)
    Downloading: 100%

  - Installing symfony/dom-crawler (2.8.x-dev a94f3fe)
    Downloading: 100%

  - Installing psr/log (dev-master 4ebe3a8)
    Downloading: 100%

  - Installing symfony/debug (2.8.x-dev 8c29235)
    Downloading: 100%

  - Installing symfony/css-selector (2.8.x-dev 71c8c3a)
    Downloading: 100%

  - Installing symfony/console (2.8.x-dev 7350016)
    Downloading: 100%

  - Installing stecman/symfony-console-completion (0.5.1)
    Downloading: 100%

  - Installing phpseclib/phpseclib (2.0.x-dev 9e15d0c)
    Downloading: 100%

  - Installing guzzlehttp/promises (1.2.0)
    Downloading: 100%

  - Installing psr/http-message (dev-master f6561bf)
    Downloading: 100%

  - Installing guzzlehttp/psr7 (dev-master 64862e8)
    Downloading: 100%

  - Installing guzzlehttp/guzzle (dev-master 56ed0ef)
    Downloading: 100%

  - Installing gabordemooij/redbean (v4.3.2)
    Downloading: 100%

  - Installing twig/twig (1.x-dev 09bf2ba)
    Downloading: 100%

  - Installing symfony/yaml (2.8.x-dev 396784c)
    Downloading: 100%

  - Installing symfony/translation (2.8.x-dev cca6ff8)
    Downloading: 100%

  - Installing symfony/process (2.8.x-dev 024de37)
    Downloading: 100%

  - Installing symfony/finder (2.8.x-dev bc24c8f)
    Downloading: 100%

  - Installing symfony/filesystem (2.8.x-dev a378411)
    Downloading: 100%

  - Installing symfony/event-dispatcher (2.8.x-dev 25c576a)
    Downloading: 100%

  - Installing symfony/dependency-injection (2.8.x-dev 4adae54)
    Downloading: 100%

  - Installing symfony/config (2.8.x-dev f8b1922)
    Downloading: 100%

  - Installing drupal/console-en (1.0.0-rc2)
    Downloading: 100%

  - Installing dflydev/placeholder-resolver (dev-master c498d0c)
    Downloading: 100%

  - Installing dflydev/dot-access-data (dev-master 9c253bb)
    Downloading: 100%

  - Installing dflydev/dot-access-configuration (dev-master 9b65c83)
    Downloading: 100%

  - Installing drupal/console-core (1.0.0-rc6)
    Downloading: 100%

  - Installing doctrine/lexer (dev-master 83893c5)
    Downloading: 100%

  - Installing doctrine/annotations (v1.2.7)
    Downloading: 100%

  - Installing doctrine/collections (dev-master 2dfc898)
    Downloading: 100%

  - Installing alchemy/zippy (0.3.5)
    Downloading: 100%

  - Installing drupal/console (1.0.0-rc6)
    Downloading: 100%

phpseclib/phpseclib suggests installing ext-gmp (Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.)
phpseclib/phpseclib suggests installing ext-libsodium (SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.)
symfony/event-dispatcher suggests installing symfony/http-kernel ()
symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
alchemy/zippy suggests installing guzzle/guzzle (To use the GuzzleTeleporter)
Writing lock file
Generating optimized autoload files
Changed current directory to /composer
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
 ---> 3f0c8710dd6a
Removing intermediate container b5749d2b3d74
Step 5 : RUN drupal list
 ---> Running in 9e246b376602

 DrupalConsole must be executed within a Drupal Site.
 Try changing to a Drupal site directory and download it by executing:
 composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader
 composer update drupal/console --with-dependencies

The command '/bin/sh -c drupal list' returned a non-zero code: 1

@sylus
Copy link

sylus commented Oct 31, 2016

Just pinging @jmolivas for above.

I wonder if we should temporarily add to the readme that drupal console doesn't work with composer require right now and that the recommended way is to use the phar since it doesn't have this problem due to: #2590 (comment)

I can then point my docs to that and switch over to phar files only. ^_^

@esolitos
Copy link

Is it not possible to install drupal-console launcer via composer?
If so, after 2 years, should be removed from packagist and as install options?

https://hechoendrupal.gitbooks.io/drupal-console/content/en/getting/launcher.html

Followed the above instructions and i got the same error, download method worked fine.

@jmolivas
Copy link
Member

jmolivas commented Jan 10, 2018

There is a PR for that hechoendrupal/drupal-console-launcher#127 still not working. If anyone interested feel free to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants