From 2a2caa66dd62dc5f06c0c35b9f23fb399a27a89b Mon Sep 17 00:00:00 2001 From: Carlos Zoido Date: Wed, 23 Jul 2025 17:14:59 +0200 Subject: [PATCH 1/3] conan 2.19.0 docs --- changelog.rst | 28 ++++++++++++++++++++++++++++ conf.py | 4 ++-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/changelog.rst b/changelog.rst index c4d2605fdaf..cffecc26192 100644 --- a/changelog.rst +++ b/changelog.rst @@ -3,6 +3,34 @@ Changelog For a more detailed description of the major changes that Conan 2 brings, compared with Conan 1.X, please read :ref:`whatsnew` +2.19.0 (17-Jul-2025) +-------------------- + +- Feature: Changed some private attributes in MesonToolchain as public ones, e.g., `b_ndebug`, `b_staticpic`. `#18676 `_ +- Feature: PremakeDeps will now correctly propagate libraries, headers and binaries depending on the requirement traits. `#18663 `_ +- Feature: Add `cmake_target_aliases` support for `CMakeConfigDeps`. `#18662 `_ +- Feature: Add ``self.conan_data`` to the information serialized by ConanFile, so it is printed in ``conan graph info`` and other commands. `#18661 `_ . Docs `here `__ +- Feature: Let :command:`conan source` reference the backup sources it generates in more cases. `#18655 `_ +- Feature: Add user channel to CycloneDX SBOM ``sbom_ref`` field. `#18649 `_ +- Feature: Enable ``test_package_folder`` attribute for :command:`conan export-pkg` command. `#18621 `_ . Docs `here `__ +- Feature: Add support for GCC 12.5. `#18587 `_ . Docs `here `__ +- Feature: New `makefile` parameter in Autotools `make`/`install` methods to allow specifying the name of the Makefile file. `#18578 `_ +- Feature: Let graph html focus on searched package when pressing Intro in search box. `#18575 `_ +- Feature: Allow defining a custom platform on Premake generator for Windows. `#18572 `_ +- Feature: Allow profile composition while using conan runners. `#18534 `_ +- Fix: Add explicit error when trying to export a reference with `channel` but no `user`. `#18646 `_ . Docs `here `__ +- Fix: Check `required_conan_version` before loading hooks. `#18644 `_ +- Fix: Avoid logging levels hiding the login username/password request messages. `#18642 `_ +- Fix: Allow ``cc`` compiler to be defined with spaces for profile auto detection. `#18628 `_ +- Fix: Fixed untargz when the destination path uses the Windows long paths prefix `\\?\`. `#18612 `_ +- Fix: `CMakeConfigDeps` filter `requires()` to `package_type=application`. `#18611 `_ +- Fix: Fix multithreading for self-contained Conan binaries. `#18603 `_ +- Fix: Improve version detection for `cc` compilers. `#18600 `_ +- Fix: Pass deployment target from profile to ``XcodeBuild``. `#18496 `_ . Docs `here `__ +- Fix: Project path and target name are quoted now for ``XcodeBuild``. `#18496 `_ . Docs `here `__ +- Bugfix: Make `package_type="configuration"` packages independent of the `config_mode` for their `package_id`. `#18671 `_ +- Bugfix: PremakeDeps: ensure correct linkage on dependent libraries. `#18631 `_ + 2.18.1 (04-Jul-2025) -------------------- diff --git a/conf.py b/conf.py index 3f5100c4564..ffb64b8c861 100644 --- a/conf.py +++ b/conf.py @@ -66,9 +66,9 @@ # The short X.Y version. -version = "2.18" +version = "2.19" # The full version, including alpha/beta/rc tags. -release = u'2.18.1' +release = u'2.19.0' dir_path = os.path.dirname(os.path.realpath(__file__)) if not os.path.exists(os.path.join(dir_path, "versions.json")): From c19891eb3c6a980fbdd2ed53fcfe2fa60193aca6 Mon Sep 17 00:00:00 2001 From: Carlos Zoido Date: Wed, 23 Jul 2025 18:15:53 +0200 Subject: [PATCH 2/3] fix date --- changelog.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.rst b/changelog.rst index cffecc26192..b8ee23f9ccc 100644 --- a/changelog.rst +++ b/changelog.rst @@ -3,7 +3,7 @@ Changelog For a more detailed description of the major changes that Conan 2 brings, compared with Conan 1.X, please read :ref:`whatsnew` -2.19.0 (17-Jul-2025) +2.19.0 (23-Jul-2025) -------------------- - Feature: Changed some private attributes in MesonToolchain as public ones, e.g., `b_ndebug`, `b_staticpic`. `#18676 `_ From 6b96efc9f0e80652b2d4a2c9bac4c80ffb102522 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abril=20Rinc=C3=B3n=20Blanco?= <5364255+AbrilRBS@users.noreply.github.com> Date: Thu, 24 Jul 2025 10:45:12 +0200 Subject: [PATCH 3/3] Add stdout/stderr outputs to FAQ (#4175) * Add stdout/stderr to faq * Crosslink --- knowledge/faq.rst | 37 +++++++++++++++++++++++++++++++++++++ reference/commands.rst | 2 ++ 2 files changed, 39 insertions(+) diff --git a/knowledge/faq.rst b/knowledge/faq.rst index ed431dc2e19..9b4e70fa5e3 100644 --- a/knowledge/faq.rst +++ b/knowledge/faq.rst @@ -222,3 +222,40 @@ The general best practices are: - Keep the versions aligned. If using a version range try to use the same version range everywhere. - Declare first dependencies that use fixed version, not version ranges - Use the ``conan graph info ... --format=html > graph.html`` graphical interactive output to understand and navigate conflicts. + +.. _faq_stdout_stderr_redirects: + +Conan is redirecting its output to stderr +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +As explained :ref:`in the commands reference`, +by design Conan redirects its logging information to the standard error output (stderr), +while the actual results of the commands are sent to the standard output (stdout). + +This is done to allow users to easily redirect the output of Conan commands to files or other +processes without having the logging information mixed with the actual results. + +For example, running a command like: + +.. code-block:: text + + $ conan graph info --requires=zlib/1.3.1 --format=json > graph.json + + ... + + ======== Computing dependency graph ======== + Graph root + cli + Requirements + zlib/1.3.1#b8bc2603263cf7eccbd6e17e66b0ed76 - Cache + + ======== Computing necessary packages ======== + Connecting to remote 'conancenter' anonymously + Requirements + zlib/1.3.1#b8bc2603263cf7eccbd6e17e66b0ed76:dbb40f41e6e9a5c4a9a1fd8d9e6ccf6d92676c92#8976086f07d37e3f6288e2fccf9650ae - Cache + +will create a file named ``graph.json`` with the JSON output of the command, but it will not +include any logging information, which will be printed to the console. + +Note that this approach is common in many command-line tools such as ``git`` and ``curl``, +and it is not specific to Conan. diff --git a/reference/commands.rst b/reference/commands.rst index 637ae61959c..70e74ca7c92 100644 --- a/reference/commands.rst +++ b/reference/commands.rst @@ -101,6 +101,8 @@ common practices in many CLI tools and the `POSIX standard - ``stderr``: For diagnostic output, including logs, warnings, errors, and progress messages. +More info can be found more in the :ref:`FAQ section`. + **Redirecting Output to Files** You can redirect Conan output to files using shell redirection: