-
Notifications
You must be signed in to change notification settings - Fork 986
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 workspace build command #17305
Comments
Hi @aander80 Thanks for your suggestion. I agree that this could be useful, and it is something we will discuss in next steps At the moment, you can do:
This will build The |
Thanks, I was looking for a command like that! :)
Would it make sense to check
I expect that it would be useful to specify |
Yeah, this is exactly the kind of thing that needs to be considered. I think that it might be possible to iterate the builds of several roots. We also have the
If that maps to |
Yeah I expect that for the most part you would want that behavior by default, but I can also see cases where you would only want to build a single package but still use the editables from the workspace; a very simple example of this is if you have 10 libraries and building, even with caching, takes as little as 3 seconds, then you need to wait for 30 seconds for the application to even start building every time. I am thinking that if default behavior is to build a single node in the workspace graph (e.g. For the most part, I guess that |
What is your suggestion?
Hello!
As part of the workspace feature (#15992), I would like to have a
conan workspace build
command. The idea is that it would resolve the dependency graph and build missing editable packages in the cache (I expect that here, you would need to build all and rely on the underlying build system caching the build artifacts correctly).In my example repo where I am testing workspaces, I am thinking that I should be able to run
conan workspace build
and it will first buildliba
andlibb
, followed byapp
(app
is an executable depending on static librariesliba
andlibb
).This would allow users to mimic a monorepo with multiple repos, and have a nice CLI similar to what you have with
cargo build
with workspaces in Rust.Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: