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

Fix conan info --build-order deprecation message. #7632

Merged
merged 1 commit into from Sep 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion conans/client/command.py
Expand Up @@ -682,7 +682,7 @@ def info(self, *args):

if args.build_order:
self._out.warn("Usage of `--build-order` argument is deprecated and can return"
" wrong results. Use `conan graph build-order ...` instead.")
" wrong results. Use `conan lock build-order ...` instead.")

if args.install_folder and (args.profile_host or args.settings_host
or args.options_host or args.env_host):
Expand Down
4 changes: 2 additions & 2 deletions conans/test/functional/command/info/info_test.py
Expand Up @@ -541,10 +541,10 @@ def diamond_build_order_test(self):
self.client.out)
self.client.run("info . -bo=Dev1/0.1@lasote/stable")
self.assertEqual("WARN: Usage of `--build-order` argument is deprecated and can return wrong"
" results. Use `conan graph build-order ...` instead.\n\n", self.client.out)
" results. Use `conan lock build-order ...` instead.\n\n", self.client.out)
self.client.run("info . -bo=LibG/0.1@lasote/stable")
self.assertEqual("WARN: Usage of `--build-order` argument is deprecated and can return wrong"
" results. Use `conan graph build-order ...` instead.\n\n", self.client.out)
" results. Use `conan lock build-order ...` instead.\n\n", self.client.out)

self.client.run("info . --build-order=ALL")
self.assertIn("[LibA/0.1@lasote/stable, LibE/0.1@lasote/stable, LibF/0.1@lasote/stable], "
Expand Down