HiveBrain v1.2.0
Get Started
← Back to all entries
patterngitMinor

What do you need for a monorepo for a large codebase?

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
youwhatneedlargeformonorepocodebase

Problem

From certain size of the codebase, would you still have Git or are there more specialized solutions?

(Also to checkout just a part of the codebase)

Solution

The answer is: a bit of both. To satisfy the constraints of "use git" and "manage a vast codebase" Microsoft developed a new filesystem (previously they were using a variant of Perforce called SourceDepot). It's open source but I have no personal experience of using it.

Why would you want a monorepo? The most obvious reason is that you can modify an API and all the callers of that API in an atomic commit. Also there are advantages to being able to do a git log search across the entire codebase...

Context

StackExchange DevOps Q#4051, answer score: 4

Revisions (0)

No revisions yet.