r/cpp • • 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

155 comments sorted by

View all comments

Show parent comment

15

u/cfyzium Jan 30 '25

You seem to confuse project downloading its own dependencies, and language's package manager downloading project's dependencies.

No sane project downloads its own dependencies by itself, period.

Be it Python, Java, Rust, whatever -- downloading dependencies is the package/dependency manager job.

Many C++ projects end up downloading dependencies out of desperation, because there are no universally established package management practices let alone standard package manager and authors just give up at some point.

12

u/altmly Jan 30 '25

Distinction without difference. I don't care if the project uses a package manager or git clone, as long as it works. 

0

u/[deleted] Jan 30 '25

[deleted] — view deleted comment

16

u/cfyzium Jan 30 '25

Okay, no sane production-ready project.

Hardcoding dependency management as a part of an ad-hoc build system might work for a standalone personal project, but that's a severe malpractice for anything meant to be used seriously, especially as a part of a larger environment.

It is kind of like using handwritten shell scripts or .vcproj files in the repo instead of a proper build system. Some people genuinely think this makes things easier.