49 ms·
Is there a reason not to make use of your language's package management tools instead? In my experience, most such "submodules" are better off handled as packag
by WorldMaker 10y ago
Is there a reason not to make use of your language's package management tools instead? In my experience, most such "submodules" are better off handled as packages (npm, NuGet, jspm, gem, et al) than submodules. Certainly there are complications for private/enterprise feeds, but most of the package managers have options these days (including pointing at just about any git repository directly).
- icebraining 10y agoThere are two constraints: we use Python and we run multiple copies of the software (with potentially version-incompatible modules) on the same host. That means we'd have to use virtualenv or similar, plus pip or easy_install to actually fetch and install the modules. On the developer side, it means having to manually update the dependencies file to upgrade a module, while with submodules they can just do "git pull" inside it and then "git add" in the parent repo, which auto-detects the new version. I'd love to see a simpler approach, but I couldn't find it.
- WorldMaker 10y agoAh, Python. Yeah, virtualenv + pip or docker + pip would probably be a better way to manage that sort of thing and increase separation of your git repositories (and better yet, better separation of your Python VMs), but I can see why submodules feel easier in this case if you are dealing with system global installs of Python packages right now.