From 22e17cc123d9322afb28f55234aff5e8e85fcd37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Rinc=C3=B3n=20Blanco?= Date: Thu, 7 Mar 2024 21:35:16 +0100 Subject: [PATCH] Improve trim_conandata() docs --- reference/tools/files/basic.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reference/tools/files/basic.rst b/reference/tools/files/basic.rst index f836e6fbedc2..fd253f02a8d5 100644 --- a/reference/tools/files/basic.rst +++ b/reference/tools/files/basic.rst @@ -258,8 +258,9 @@ conan.tools.files.trim_conandata() This function modifies the ``conandata.yml`` inside the exported folder in the conan cache, if it exists, and keeps only the information related to the currently built version. -This helper can only be used within the ``export()`` method, it can raise otherwise. One application is -to ensure changes in the ``conandata.yml`` file related to some versions do not affect the generated recipe revisions of the rest. +This helper can only be used within the ``export()`` method or ``post_export()`` :ref:`hook`, +it may raise in the future otherwise. One application is to ensure changes in the ``conandata.yml`` file +related to some versions do not affect the generated recipe revisions of the rest. Usage: