r/cpp • u/TheRavagerSw • Feb 28 '26
Language specific package managers are a horrible idea
Package managers should only deal with package cache and have a scripting interface.
Package managers trying to act smart only makes our jobs harder as evidenced by looking at the issue pages of global package registries.
I recommend everyone here to switch to Conan and not use any abstractions for the build systems, disable remote and use a deployment script or using full deploy as an option. It is not ideal, but it doesn't stand in your way.
0
Upvotes
View all comments
Show parent comment
3
u/not_a_novel_account cmake dev Mar 02 '26 edited Mar 02 '26
It's hard for us to read too, such is life in a C++11 codebase. If I was around in 2001 I would have advised different decisions. Thank you for your contributions.
I agree there's no need for a language agnostic package manager to be the system package manager. In practice, many package managers are language agnostic. vcpkg doesn't care what language the code you're downloading is written in, PyPI doesn't care, nor does Meson WrapDB or Spack. I'm sure there are many others.
However, that's not what I was responding to, I was responding to:
Using the distro manager for development dependencies has never been a majority practice among the entire population of C++ developers. It is at best uncommon, at worst a specific development niche.
What's language specific is the language environment, Cargo is used by Rust developers because it supports the Rust ecosystem. NPM is used by Javascript developers because it supports the Javascript ecosystem. They can download and install dependencies implemented in basically any language, backed by any build system, but they still have features targeted towards the nature of the development they support.