Submodules vs Vendor Branching
Developers should use submodules when working on large, modular projects that require integrating external codebases or libraries while preserving their independent version histories meets developers should use vendor branching when working with external dependencies that require frequent updates or custom modifications, such as open-source libraries or proprietary sdks. Here's our take.
Submodules
Developers should use submodules when working on large, modular projects that require integrating external codebases or libraries while preserving their independent version histories
Submodules
Nice PickDevelopers should use submodules when working on large, modular projects that require integrating external codebases or libraries while preserving their independent version histories
Pros
- +Common use cases include managing third-party dependencies, separating core and plugin components, or collaborating on multi-repository projects where changes need to be synchronized
- +Related to: git, version-control
Cons
- -Specific tradeoffs depend on your use case
Vendor Branching
Developers should use vendor branching when working with external dependencies that require frequent updates or custom modifications, such as open-source libraries or proprietary SDKs
Pros
- +It is particularly useful in large projects where maintaining compatibility with vendor changes is critical, enabling teams to test and integrate updates in a controlled manner without disrupting the main codebase
- +Related to: version-control, git-branching
Cons
- -Specific tradeoffs depend on your use case
The Verdict
These tools serve different purposes. Submodules is a tool while Vendor Branching is a methodology. We picked Submodules based on overall popularity, but your choice depends on what you're building.
Based on overall popularity. Submodules is more widely used, but Vendor Branching excels in its own space.
Disagree with our pick? nice@nicepick.dev