Use git submodules for extensions#6
Conversation
Now instead of manually cloning them in the `extensions` folder, you can run `git submodule update --init`. You can also define what commit/branch/tag to track if the tip of the master branch is not suitable for production.
|
Thanks! Sorry for the conflict :) Maybe I should have some kind of |
|
Yes, as I mentioned if your dev workflow requires those to be real git clones (or symlinks to git clones) instead of submodules, it's a valid reason to reject this change. Submodules have pros and cons, and in the case of libraries that you maintain yourself, the cons may outweigh the pros (e.g. if you want to always test the latest code of those modules or even uncommitted stuff, having real clones/symlinks is much better). |
|
@akien-mga @larpon
Git 1.8.2 added the possibility to track branches, so instead of referencing a specific commit, your directly reference a branch. .E.g it would always use the latest and greatest from the master branch. |
|
@kratz00 - submodule checkouts still require HDD space? Which I'm practically out of (I have to move things around already as it is). Since I'm the maintainer of both dependencies (Qak, QtFirebase) I have have many projects dependent on them - so the single most easy thing for me to do in this situation is to have symlinks pointing to the projects. Also the Firebase C++ SDK from Google is ~800 megs or so alone. I'm not against using sub-modules - it's just that it complicates my development circle locally |
|
@larpon
But I feel it could be annoying to run the mount command all the time. |
Now instead of manually cloning them in the
extensionsfolder,you can run
git submodule update --init.You can also define what commit/branch/tag to track if the tip of
the master branch is not suitable for production.
This is just a suggestion, feel free to reject it if you prefer to keep "real" repositories in
extensions/(especially if you do your dev work for those libraries there directly).