djoos-cookbooks / composer

Repository for composer cookbook
http://community.opscode.com/cookbooks/composer
MIT License
27 stars 38 forks source link

Added --prefer-source #49

Closed jujugrrr closed 9 years ago

jujugrrr commented 9 years ago

Hi, The library support --prefer-dist which is set to false by default, but it seems it's enabled by default in composer.

--prefer-source: There are two ways of downloading a package: source and dist. For stable versions composer will use the dist by default. The source is a version control repository. If --prefer-source is enabled, composer will install from source if there is one. This is useful if you want to make a bugfix to a project and get a local git clone of the dependency directly.

Adding --prefer-source will allow to force sources. It's particularly useful when you reach this kind of rate limit issue on github about rate limit : https://github.com/composer/composer/issues/1861

jujugrrr commented 9 years ago

Hi @djoos , do you think you could have a look ?

djoos commented 9 years ago

Thanks for your contribution @jujugrrr, sorry for the delay in getting this merged in...

Kind regards, David

jujugrrr commented 9 years ago

Cheers :+1:

sorry for the delay in getting this merged in...

No worries :-)