Conan Repository Exclusive Official
$ conan create . user/channel $ conan upload logger/1.2.0 -r my_company_exclusive --all The --all flag uploads both the recipe (conanfile.py) and the binary ( .a file). This is the essence of the exclusive repository: the binary is now stored on your server, not on any public host. The real power of a Conan repository exclusive reveals itself when dealing with third-party vulnerabilities. Imagine the OpenSSL team releases version 3.0.8 to patch a CVE. You cannot just update conanfile.txt from 3.0.7 to 3.0.8 , because the recipe might change.
from conans import ConanFile class LoggerConan(ConanFile): name = "logger" version = "1.2.0" settings = "os", "compiler", "build_type", "arch" exports_sources = "src/*" conan repository exclusive
However, while pulling public libraries from Conan Center is straightforward, the true power of Conan for teams and enterprises lies in a concept that doesn’t get enough attention: the . $ conan create
Your exclusive repository solves this by defining a . Using conan lockfiles , you can freeze all transitive dependencies. In an exclusive model, you store these lockfiles alongside the packages. The real power of a Conan repository exclusive
In the modern era of software development, package managers have become the backbone of efficient workflows. For Python, there is PyPI; for JavaScript, npm; for Rust, Cargo. For C and C++, the gold standard has increasingly become Conan , an open-source, decentralized package manager.
In your conanfile.py for your internal logger: