Why your company shouldn’t use Git submodules

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Why your company shouldn’t use Git submodules

Dale Henrichs
I've been exploring the sue of git submodules[1] recently[2], so this article[3] is a good resource ... I had heard a while ago that there were "problems with submodules", and having used them for a couple of git projects I have seen some of the difficulties mentioned in the article first hand, but there are other issues as well ...

Net-net is that git submodules are not the end-all, be-all solution and frankly it doesn't look like any of the alternatives mentioned in the article are surefire winners, so Metacello is not alone in having an imperfect solution for the "dependent project problem":)

Dale

[1] http://book.git-scm.com/5_submodules.html
[2] https://github.com/dalehenrich/amber-skeleton/blob/master/README.md
[3] http://codingkilledthecat.wordpress.com/2012/04/28/why-your-company-shouldnt-use-git-submodules/
Reply | Threaded
Open this post in threaded view
|

Re: Why your company shouldn’t use Git submodules

Camillo Bruni-3
:) I remember that I perceived this as major drawback of git over svn.
I think you have to do it more in the way of specifying lower / upper bounds (e.g. >= 1.2 < 1.3)  for depending projects.


On 2012-04-30, at 23:24, Dale Henrichs wrote:

> I've been exploring the sue of git submodules[1] recently[2], so this article[3] is a good resource ... I had heard a while ago that there were "problems with submodules", and having used them for a couple of git projects I have seen some of the difficulties mentioned in the article first hand, but there are other issues as well ...
>
> Net-net is that git submodules are not the end-all, be-all solution and frankly it doesn't look like any of the alternatives mentioned in the article are surefire winners, so Metacello is not alone in having an imperfect solution for the "dependent project problem":)
>
> Dale
>
> [1] http://book.git-scm.com/5_submodules.html
> [2] https://github.com/dalehenrich/amber-skeleton/blob/master/README.md
> [3] http://codingkilledthecat.wordpress.com/2012/04/28/why-your-company-shouldnt-use-git-submodules/