-
Notifications
You must be signed in to change notification settings - Fork 988
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
new build-order-prepare subcommand #13685
new build-order-prepare subcommand #13685
Conversation
subparser.add_argument("ref", help="recipe to build") | ||
subparser.add_argument("package_id", help="package to build") |
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.
Couldn't we put this two arguments together so that you need to pass pkg/1.0:abc123
? Your way is more explicit which might avoid confusion though..
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.
Yes, that is doable, whatever UI the team prefers.
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.
Yes, I think I agree with adding the package_id in the reference too instead of a separate argument
@conan_subcommand(formatters={"text": cli_out_write}) | ||
def graph_build_order_prepare(conan_api, parser, subparser, *args): | ||
""" | ||
Compute the build order of a dependency graph. |
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.
This should be updated
@@ -83,6 +85,37 @@ def graph_build_order(conan_api, parser, subparser, *args): | |||
return install_order_serialized | |||
|
|||
|
|||
@conan_subcommand(formatters={"text": cli_out_write}) | |||
def graph_build_order_prepare(conan_api, parser, subparser, *args): |
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 that maybe the name of the subcommand it's not so intuitive, what about something like:
conan graph install-prepare
conan graph install-config
Maybe more explicit like this?conan graph generate-install-args
Dropping this:
Continue in #13597 |
Changelog: Feature: New
conan graph build-order-prepare
for CI flows simplificationDocs: https://github.com/conan-io/docs/pull/XXXX