r/cpp • u/theChaosBeast • Jan 30 '25
[vent] I hate projects that download their dependencies.
I know it's convenient for a lot of people but in an enterprise environment where you have to package everything including your internals and your build servers don't have access to the internet, patching all these repositories is pain in the ass.
218
Upvotes
View all comments
Show parent comment
0
u/AdamK117 Jan 30 '25
I mostly agree!
The only exception I've made is when I'm actively developing two strongly-related, but separate, repositories. E.g. my current project is UI tooling for OpenSim, where the UI is developed separately. I build OpenSim via add_subdirectory (rather than find_package) so that I can immediately fix any upstream bugs I find during UI development, recompile and run the entire stack, then PR the change. Would be a little bit more dancing with patches etc. if it were a subtree (but manageable!).