Slow updating of composer dependencies, despite --prefer-dist flag

后端 未结 10 1747
走了就别回头了
走了就别回头了 2020-12-22 18:42

Why does it take up to two minutes for my composer dependencies to update, even when there have been no changes?

A popular suggestion is to append the --prefer-

10条回答
  •  借酒劲吻你
    2020-12-22 19:14

    You are using a private repository. This will not allow to download zipped version of the version you include, but must clone the repository. Additionally, it might be that the whole repository must be scanned to find the required version.

    You should check whether using Satis is an option. That way you could prepare ZIPs of your own software and download it just like the things hosted on Github (which has an API for this that is used by Composer to allow downloading ZIPs even if they are not explicitly prepared).

提交回复
热议问题