On 02/23/2015 08:34 AM, Amir E. Aharoni wrote:
Should composer.lock be added to .gitignore?
IMO yes. I had removed it from some extensions in the past IIRC.
It may be different for different extensions. In
currently only have:
I don't know much about Composer, but it looks like nothing more than the
bare minimum. Should composer.lock be version-controlled in such a
If you are using composer to install extensions, I would say yes, it
should be ignored. In that case the extension is basically a library,
and composer will just ignore the lock file when installing, so it ends
up being misleading.
If you are using composer to manage development dependencies like phpcs
or phpunit, then maybe, though I personally would prefer to ignore it.