-
Notifications
You must be signed in to change notification settings - Fork 993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] Conan generator to mimic submodules behavior #16623
Comments
Hi @sin-diesel Thanks for your feedback.
It is important to understand that package-based development is basically a different development paradigm than mono-repo development. Once package-based development is used, and different packages can be developed and released independently under its own version, some features that could be used in a mono repo approach are lost. Conan packages have fully independent builds to the point that different packages can have completely different build systems and a package generated with any build system can be consumed by any package with any other build system. This introduces a high decoupling between packages. Even if they use the same build system, as CMake, the features used in both cases are different, package-based development uses mostly I think what you are looking for might is the
This feature, using Conan can certainly help, because it is easier to control the package binaries so not all developers have access to the source code but to the binaries only.
The features you suggest will be part of the As I think this would be mostly responded by |
Hi @sin-diesel Any further feedback here? Can we close this ticket and follow up on the |
Hi @memsharded |
What is your suggestion?
Hi! I've recently worked on a set of projects which, by the nature of their content, are submodule-based. One of the most severe issues that I've encontered with submodules that is really problematic and widespread is the duplication of repositories included multiple times in the submodules tree structure.
We've thought of starting to use
conan
there, because the conan cache is shared and, if we wrap all submodules in conan packages, we'll get rid of the problem of multiple duplication of the same code in packages.Though currently conan supports that, the facilities it provided are not sufficient to comfortably work with source packages.
First of all, we lose the repository tree structure. Developers really like that and need to work with source packages in the source tree. instead of going to cache every time they need to make changes to the source code.
Second of all, sometimes we need to make sure that not every developer can download and install all submodules in the repository. Sometimes access to them should be limited and only people with direct access to git repository can get the source package with it source code.
The solution I propose is following:
Each repo can still be individually managed (making commits, creating conan packages, etc). This will solve the problem of source code duplication in submodules using conan cache, and will still provide transparent workflow for developers who are required to work with submoduled.
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: