Skip to content

Conversation

@AbrilRBS
Copy link
Member

@AbrilRBS AbrilRBS commented Sep 22, 2025

Changelog: Feature: Add conan run command to run commands from packages
Changelog: Bugfix: Conanfile.run's quiet parameter now silences the output of the command
Changelog: Bugfix: Verbosity level quiet now also silences the output of tools ran by Conan

Docs: conan-io/docs#4327

The idea is that users have an easy way to execute binaries from their dependencies (or their package when using --requires) without the need to first activate the conan-generated environments

@AbrilRBS AbrilRBS added this to the 2.22.0 milestone Sep 22, 2025
@AbrilRBS AbrilRBS changed the title Add conan run command to run commands from previous conan install runs Add conan run command to run packages from Conan directly Sep 30, 2025
@AbrilRBS AbrilRBS self-assigned this Oct 14, 2025
@perseoGI perseoGI force-pushed the ar/conan-run-command branch from 73b2e7a to 8d204f7 Compare October 15, 2025 11:20
Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

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

Still concerned about the output modifications

ConanOutput().writeln(f"{self.display_name}: RUN: {command}", fg=Color.BRIGHT_BLUE)
ConanOutput().info(f"{self.display_name}: RUN: {command}", fg=Color.BRIGHT_BLUE)
ConanOutput().debug(f"{self.display_name}: Full command: {wrapped_cmd}")
if quiet or ConanOutput()._conan_output_level == LEVEL_QUIET:
Copy link
Member

Choose a reason for hiding this comment

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

I don't love the fact that changes to how Conan outputs things are being done for the new conan run experimental functionality. I think these changes are riskier than they appear, and should be avoided, or at least considered more carefully.

@czoido czoido modified the milestones: 2.22.0, 2.23.0 Oct 29, 2025
Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

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

This is looking good, but I think there are still a couple of points to discuss and check

@memsharded memsharded merged commit 2830cb5 into conan-io:develop2 Nov 25, 2025
16 checks passed
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.

5 participants