From 353b8185b5acf90c8c7de177a0a7b50afd35353a Mon Sep 17 00:00:00 2001 From: Pieter P Date: Tue, 25 Mar 2025 00:18:28 +0100 Subject: [PATCH] Mention `ConanFile.conf` validity (https://github.com/conan-io/conan/issues/18008) --- reference/conanfile/attributes.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reference/conanfile/attributes.rst b/reference/conanfile/attributes.rst index b115017116be..8176c922343f 100644 --- a/reference/conanfile/attributes.rst +++ b/reference/conanfile/attributes.rst @@ -87,6 +87,10 @@ The profile entries have priority. The ``conf`` attribute is a **read-only** attribute. It can only be defined in profiles and command lines, but it should never be set by recipes. Recipes can only read its value via ``self.conf.get()`` method. +.. note:: + + Accessing the ``conf`` attribute is allowed during the ``generate()``, ``build()`` and ``package()`` methods only. + Output ------