Hacker News new | past | comments | ask | show | jobs | submit login

Easy solution: just don't use submodules.



Great, and now how do you reasonably share a dependency between multiple repositories while correctly tracking the exact version of that dependency at each point in history?


I find using subtrees much easier than submodules - http://blogs.atlassian.com/2013/05/alternatives-to-git-submo...

The command line is a little obscure (at least, I can never remember the command to pull the latest remote changes first time) but overall the use of them is a lot nicer, for the way I work at least. Being able to have "local" edits to subtrees while still allowing remote updating and colleagues to clone the repo with the local updates is rather useful.


Subtree and submodule solve different problems. I use both often. Sorry about the downvote, I fat thumbed you


A window to change votes would be nice, much like there is a window to edit your comment.


Use the repo tool used by android? I'm not sure bout dependency versions at each point in history since AOSP usually just points to tags or branches directly, but it seems to work for their style of large, multiple git repo projects.


Use the dependency tool your language provides. Node for example lets you specify an exact commit, I'm sure most others do as well.


Python at least doesn't provide any reasonable dependency tool for third-party test suite data. I can't really package a third-party test suite as a Python program.


Not that simple, sometimes you want to change a dependency and test the change without pushing the commit.


Why can't you do that with the language package manager? In Node you simply change the version number, run npm install, test the changes, either commit or don't.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: