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

composer update -h triggers prefetch #225

Open
troggybrains opened this issue Jun 1, 2020 · 0 comments
Open

composer update -h triggers prefetch #225

troggybrains opened this issue Jun 1, 2020 · 0 comments

Comments

@troggybrains
Copy link

troggybrains commented Jun 1, 2020

As stated in the title, issuing a composer update -h on commandline, prestissimo will trigger a prefetch. On projects with a large amount of dependencies (e.g. Magento 2), completion can take a while until finished and until we get what we actually want to see, the help message of the subcommand update.
Usually you wouldn't issue a composer update -h but a very neat bash-autocompletion script for composer does it every time you type composer update <tab> in order to present options for the subcommand.

Reproduction:

  1. Install prestissimo as described
  2. Change directory to a project with lots of dependencies
  3. Issue composer update -h
    => Watch and wait until presitissimo has prefetched all dependencies
troggybrains added a commit to troggybrains/composer-autocomplete that referenced this issue Jun 1, 2020
Trying to get options for `update` subcommand can result in long
waiting period an seemingly unresponsive bach completion when
composer plugin hirak/prestissimo is being used.
The latter will prefetch repositories whenever encountering the
subcommands `install`, `update` and the likes. When a project uses may
dependencies and repositories, this can take a while. An issue has also
been filed with prestissimo plugin (see hirak/prestissimo#225)
yet using the `help [command]` subcommand in favor to `[command] -h`
in order to retrieve all available options seems more reliable anyway.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant