Skip to content
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

first sketch for workspace build #17538

Open
wants to merge 5 commits into
base: develop2
Choose a base branch
from

Conversation

memsharded
Copy link
Member

Changelog: Feature: Initial conan workspace build command to build the full workspace, based on the definition of products
Docs: https://github.com/conan-io/docs/pull/XXXX

Close #17305

@memsharded memsharded marked this pull request as ready for review January 22, 2025 09:23
@memsharded memsharded added this to the 2.12.0 milestone Jan 22, 2025
if args.path:
products = [args.path]
else: # all products
products = conan_api.workspace.products
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should to check here that products is defined and throw and exception or warning message or it will throw an ugly error because its None

@@ -48,7 +49,8 @@ def get_builtin_template(template_name):
"autotools_exe": autotools_exe_files,
"alias": alias_file,
"local_recipes_index": local_recipes_index_files,
"qbs_lib": qbs_lib_files}
"qbs_lib": qbs_lib_files,
"workspace": workspace_files}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we also have to add this to the --help message

"lib1/conanfile.py": GenConanfile("lib1", "0.1"),
"product_app1/conanfile.py": GenConanfile("app1", "0.1")})
c.run("workspace add lib1")
c.run("workspace add product_app1")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small detail: doing some tests I found that if you do a conan workspace remove myproduct the product is removed from the editable list but not from the products list. I think we want to remote the product from the products in the yaml too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature] conan workspace build command
2 participants