How to clone repository with Composer without --prefer-source? (using Symfony 2)

后端 未结 3 2005
挽巷
挽巷 2021-02-09 08:02

Scenario: I am working with Symfony 2.2. In my list of required packages is also one of my github repositories, let\'s call it \"TestLib\".

I know that I can define the

3条回答
  •  不知归路
    2021-02-09 08:48

    Adding @dev to the package version clones the repository too.

    {
      "require": {
        'package': '*@dev'
      }
    }
    

    Also is possible setup source as preference in the composer.json

    {
     "config": {
         "preferred-install": "source"
     }
    }
    

提交回复
热议问题