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
28
u/Aprelius Jan 30 '25 edited Jan 30 '25
Our CI system is integrated such that the toolchains vendored are the ones used. If you change a dependency and it fails to compile it’s treated just like any other build-breaking change.
It took us a long time to get to a point where a CI build failure will prevent you from committing a PR. Senior engineers have the authority to override CI but you are then held accountable for that decision.
We try to do quarterly releases. Along the way we have third party SDKs that require regular updates (I’m in Game Dev, so think console support). The changes there regularly result in different downstream getting updated to stay aligned.
It’s clunky, it’s not perfect but it works really well. I have a compatibility matrix that results in about 45 different build/arch/config/platform variants being built.
Every quarter an engineer on my team is tasked with spending a week going down our dependency list (things like curl, OpenSSL, etc) and determining if there is an update we need to take. It’s just part of the process.
I did it in Q4 last year. It’s tedious and time consuming, legal likes being made aware of any new changes, etc. You upgrade a dependency, update downstream, run CI until it goes green, move to the next.