Should I commit the dependencies in my vendor directory?

91 views
Skip to first unread message

Javier Garcia

unread,
Apr 30, 2013, 9:40:13 AM4/30/13
to compose...@googlegroups.com
Hi,

I found this article about why we should not commit the dependencies inside our vendor/ directory, but it is not very clear WHY I should not do it..

In my case, I'm working alone, does this influence the final decision?

Can you explain more the reason please?

Thanks,

Javi

Igor Wiedler

unread,
May 1, 2013, 9:44:54 AM5/1/13
to compose...@googlegroups.com
Hi,

The page you linked to lists quite a few problems that you will have when you do this. If those don't convince you, feel free to do it. But read the instructions carefully, so that you know how to deal with the problems properly.

I've seen quite a few people do this and get it wrong. If you forget to remove the nested .git directories before checking stuff in, you get those fake submodules. When cloning the project that directory will simply be empty and thus the classes will not be loaded correctly. Debugging that can be quite painful, and it's easy to forget to remove the .git dirs every time you update your dependencies.

Regards,

Igor
Reply all
Reply to author
Forward
0 new messages