How do I get Composer to download the latest commit in the master branch from GitHub for a package?

前端 未结 5 1154
一个人的身影
一个人的身影 2021-01-31 01:47

I am trying to get Composer do download the latest commit for the Behat/MinkSelenium2Driver package. That particular repo only has a master branch. I have tried every method I c

5条回答
  •  一向
    一向 (楼主)
    2021-01-31 02:32

    In our case, none of the previous answers were working. It turned out to be something simple:

    Composer only uses the repositories attribute of the ROOT composer.json

    https://getcomposer.org/doc/04-schema.md#repositories

    In our case, we were trying to get the latest commit from dev-master of one of our transitive dependencies. There was some problem with the hooks between github and packagist preventing it from working like normal and it took us a couple hours to realize that we were editing the wrong composer.json (the one from our library that carries the dependency) instead of the top-level composer.json that we were installing.

提交回复
热议问题