Skip to content

Sync develop2 #4174

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

Merged
merged 3 commits into from
Jul 29, 2025
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 (23-Jul-2025)
--------------------

- Feature: Changed some private attributes in MesonToolchain as public ones, e.g., `b_ndebug`, `b_staticpic`. `#18676 <https://github.com/conan-io/conan/pull/18676>`_
- Feature: PremakeDeps will now correctly propagate libraries, headers and binaries depending on the requirement traits. `#18663 <https://github.com/conan-io/conan/pull/18663>`_
- Feature: Add `cmake_target_aliases` support for `CMakeConfigDeps`. `#18662 <https://github.com/conan-io/conan/pull/18662>`_
- Feature: Add ``self.conan_data`` to the information serialized by ConanFile, so it is printed in ``conan graph info`` and other commands. `#18661 <https://github.com/conan-io/conan/pull/18661>`_ . Docs `here <https://github.com/conan-io/docs/pull/4172>`__
- Feature: Let :command:`conan source` reference the backup sources it generates in more cases. `#18655 <https://github.com/conan-io/conan/pull/18655>`_
- Feature: Add user channel to CycloneDX SBOM ``sbom_ref`` field. `#18649 <https://github.com/conan-io/conan/pull/18649>`_
- Feature: Enable ``test_package_folder`` attribute for :command:`conan export-pkg` command. `#18621 <https://github.com/conan-io/conan/pull/18621>`_ . Docs `here <https://github.com/conan-io/docs/pull/4173>`__
- Feature: Add support for GCC 12.5. `#18587 <https://github.com/conan-io/conan/pull/18587>`_ . Docs `here <https://github.com/conan-io/docs/pull/4169>`__
- Feature: New `makefile` parameter in Autotools `make`/`install` methods to allow specifying the name of the Makefile file. `#18578 <https://github.com/conan-io/conan/pull/18578>`_
- Feature: Let graph html focus on searched package when pressing Intro in search box. `#18575 <https://github.com/conan-io/conan/pull/18575>`_
- Feature: Allow defining a custom platform on Premake generator for Windows. `#18572 <https://github.com/conan-io/conan/pull/18572>`_
- Feature: Allow profile composition while using conan runners. `#18534 <https://github.com/conan-io/conan/pull/18534>`_
- Fix: Add explicit error when trying to export a reference with `channel` but no `user`. `#18646 <https://github.com/conan-io/conan/pull/18646>`_ . Docs `here <https://github.com/conan-io/docs/pull/4167>`__
- Fix: Check `required_conan_version` before loading hooks. `#18644 <https://github.com/conan-io/conan/pull/18644>`_
- Fix: Avoid logging levels hiding the login username/password request messages. `#18642 <https://github.com/conan-io/conan/pull/18642>`_
- Fix: Allow ``cc`` compiler to be defined with spaces for profile auto detection. `#18628 <https://github.com/conan-io/conan/pull/18628>`_
- Fix: Fixed untargz when the destination path uses the Windows long paths prefix `\\?\`. `#18612 <https://github.com/conan-io/conan/pull/18612>`_
- Fix: `CMakeConfigDeps` filter `requires()` to `package_type=application`. `#18611 <https://github.com/conan-io/conan/pull/18611>`_
- Fix: Fix multithreading for self-contained Conan binaries. `#18603 <https://github.com/conan-io/conan/pull/18603>`_
- Fix: Improve version detection for `cc` compilers. `#18600 <https://github.com/conan-io/conan/pull/18600>`_
- Fix: Pass deployment target from profile to ``XcodeBuild``. `#18496 <https://github.com/conan-io/conan/pull/18496>`_ . Docs `here <https://github.com/conan-io/docs/pull/4129>`__
- Fix: Project path and target name are quoted now for ``XcodeBuild``. `#18496 <https://github.com/conan-io/conan/pull/18496>`_ . Docs `here <https://github.com/conan-io/docs/pull/4129>`__
- Bugfix: Make `package_type="configuration"` packages independent of the `config_mode` for their `package_id`. `#18671 <https://github.com/conan-io/conan/pull/18671>`_
- Bugfix: PremakeDeps: ensure correct linkage on dependent libraries. `#18631 <https://github.com/conan-io/conan/pull/18631>`_

2.18.1 (04-Jul-2025)
--------------------

Expand Down
4 changes: 2 additions & 2 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")):
Expand Down
37 changes: 37 additions & 0 deletions knowledge/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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<commands_output>`,
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.
2 changes: 2 additions & 0 deletions reference/commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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<faq_stdout_stderr_redirects>`.

**Redirecting Output to Files**

You can redirect Conan output to files using shell redirection:
Expand Down