-
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
first sketch for workspace build #17538
base: develop2
Are you sure you want to change the base?
Conversation
if args.path: | ||
products = [args.path] | ||
else: # all products | ||
products = conan_api.workspace.products |
There was a problem hiding this comment.
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} |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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?
Changelog: Feature: Initial
conan workspace build
command to build the full workspace, based on the definition ofproducts
Docs: https://github.com/conan-io/docs/pull/XXXX
Close #17305