Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Oh yeah, submodules can bite. At my previous job, we tried open-sourcing a part of our monorepo using them, which resulted in a clunky workflow. So we whipped up a syncing bot integrating with GitHub that would propagate changes both ways: https://github.com/WorksHub/flow-bot
Despite all the comments saying to avoid submodules i can only recommend them.
I'm using them in several of my game servers as a "meta-repo" that points to other git repositories (for exmaple here: https://github.com/pandorabox-io/pandorabox-mods)
It makes updating, finding/fixing bugs and testing much easier (we are using github's dependabot to update and kick off initial tests)
I want to use Dear ImGui [1] in a C++ project. Sure I can copy the relevant files into my repo by hand, but my instinct says that is not the way. Git submodule seems like the right tool, but there's plenty of comments here advising not to use it. So if not git-submodule, then what is the procedure?
I just want to have the external repo as a subfolder in my own repo, updating that subfolder as updates become available.
[1] https://github.com/ocornut/imgui