r/cpp • • Sep 14 '23

Which package manager are you using?

It's 2023 and you should be using a package manager. Which one?

Sep 17 '23
466 conan
625 vcpkg
29 spack
82 CPM
1730 No package manager :(
248 Other (please specify)
38 Upvotes

187 comments sorted by

View all comments

70

u/[deleted] Sep 14 '23

There was no option for

No package manager :)

50

u/[deleted] Sep 14 '23

[removed] — view removed comment

30

u/wyrn Sep 14 '23

"Crap" is an entirely subjective term here.

Personally, I think that having unbounded chains of transitive dependencies to the point everyone is depending on some random library that does some trivial task like padding text, and then the world breaks because the package is pulled, is much more deserving of being called "crap". Avoiding that disaster well worth investing the extra few minutes (or even hours) manually installing and vetting my dependencies.

7

u/prince-chrismc Sep 14 '23

Because c++ did not grow up with one this is typically just not the case. However the concern in the far future is valid point +1

And I would argue the current state which you have no clue what the build scripts have been crafted to pull in is way worse. At least in other ecosystems there is a definite list of dependencies you are pulling into your project and tools to help minify it.

Also there are tools for security analysis based on the lockfiles which is why they are such a huge feature.