Questions tagged [submodules]
14 questions
52
votes
5 answers
Organizing Git repositories with common nested sub-modules
I'm a big fan of Git sub-modules. I like to be able to track a dependency along with its version, so that you can roll-back to a previous version of your project and have the corresponding version of the dependency to build safely and cleanly. …

André Caron
- 661
- 1
- 5
- 8
5
votes
1 answer
How to have multiple source copies of a dependency in a C# git project?
In our company, we develop information system software in C#.NET, which has client-server-module architecture. Module project does not depend directly on server/client project, but only on shared parts. So the structure of core projects looks like…

David Indra
- 59
- 2
5
votes
1 answer
Project structure with git submodules with common dependencies
I have two (and more in the future) Python projects that I'd like to package into a global package in order to import its modules and use them in another external projects in the future.
This is how it is structured now:
I made it using git…

jacosro
- 167
- 3
4
votes
1 answer
Alternative for C# Library distribution within an Organisation
I am looking for advice on how to manage shared code between several projects more effectively.
Currently, we have several applications that use the same common backbone of infrastructure code, from simple utilities to wrappers around larger…

Gregory William Bryant
- 143
- 4
3
votes
1 answer
Are you supposed to commit changes to the parent when the submodules change?
I noticed some strange behavior when working with submodules in Git, which is maybe not so strange to anyone with more experience than I. Well, what I am noticing is that whenever I make changes to any of my submodules, those changes seem to stage…

Snoop
- 2,718
- 5
- 24
- 52
2
votes
1 answer
Reusing binary assets using Git
We have multiple projects that are using common binary assets (e.g. images, sounds, 3D models etc.) stored in a folder on a server. Right now, each project adds these assets to their git repository. The result is that we have multiple copies of the…

John S
- 21
- 1
1
vote
0 answers
External standalone cpp code in my project
I've inherited a project that has a codebase in src/, but it also has precompiled binaries of dependency software in bin/. I would like to move away from having precompiled software as part of our repository, since (1) it doesn't work for all users…

Throckmorton
- 137
- 5
1
vote
1 answer
Splitting up a big project for several teams by git
We have a big angular project that works with several APIs provided by other projects. This project has a common part that is shared by all. It includes smaller sections dedicated to different teams and back end APIs.
My question is "How to divide…

Hamid Mohammadi
- 123
- 4
1
vote
1 answer
Storing test results in a Git repo?
At my company, we use a distributed pool of virtual machines to run our UI and API tests. These machines are all connected to an onsite server which the pool uses for publishing the test results and outputs.
The problem is our storage on this…

YearOneEngineer
- 11
- 3
0
votes
0 answers
Git - nest an optional repository inside a repository
I have an existing repository (which is organised using the standard Golang project layout)
cmd/
bigproject/
main.go
internal/
...
pkg/
...
vendor/
...
What I would like to do is add an extra directory inside cmd which…

Jivlain
- 373
- 2
- 7
0
votes
1 answer
How to structure Python modules so they are accesible from different submodules
This is somewhat similar to this question but I could not find a solution there.
I have a project that I've worked on over the past 4 years. I started without any Python knowledge and learned as I went along, so there is a lot of legacy code and…

Dieter Vansteenwegen ON4DD
- 111
- 1
- 4
0
votes
2 answers
How to model system use cases realized by sub systems?
I found this question about sub systems & UseCases, just I lack understanding / mapping to my specific situation.
I want to model which sub component fulfills which UseCase realized by my system component10.
(I use sub component and sub system…

Shegit Brahm
- 181
- 2
- 11
0
votes
1 answer
One person controls only one folder, in a repository
How can I give complete control of one folder to one person, while the rest is in the control of another person. Control means they have the power to approve pull requests and commit to master and development.
I think the answer is git subtree or…

codeMetis
- 101
- 3
0
votes
1 answer
What is a good versioning strategy to achieve 'fail fast' with chains of dependent maven submodules?
My organisation modularised their monolith into maven modules in dependencies up to four deep. Originally we used the maven plugin to auto-increment the version numbers in the pom every time someone did a checkin. Then parent dependencies could pull…

hawkeye
- 4,819
- 3
- 24
- 35